Skip to content

Instantly share code, notes, and snippets.

@bryankennedy
Created January 8, 2013 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryankennedy/4488766 to your computer and use it in GitHub Desktop.
Save bryankennedy/4488766 to your computer and use it in GitHub Desktop.
Play a <video> at half speed.
<!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