Created
January 8, 2013 22:50
-
-
Save bryankennedy/4488766 to your computer and use it in GitHub Desktop.
Play a <video> at half speed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<video id="my-video" src="video.mp4" ...></video> | |
<script type="text/javascript"> | |
/* play video twice as fast */ | |
document.getElementById("my-video").defaultPlaybackRate = 1; | |
document.getElementById("my-video").play(); | |
/* now play three times as fast just for the heck of it */ | |
document.getElementById("my-video").playbackRate = 0.5; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment