Tuesday, March 05, 2013

 

Truly variable rate video playback in YouTube

If you use the HTML5 player for YouTube, you can use the UI to increase the playback speed to 1.5 or 2.0.  While I do like my talking heads to talk a bit faster, I don't like them to take a full 50% faster.  This bookmarklet will allow you to set the playback speed to an arbitrary value.

javascript:%7Bvar%20v%3Ddocument.getElementsByTagName(%22video%22)%5B0%5D%3Bv.playbackRate%3DparseFloat(prompt(%22Playback%20rate%3F%20%5B%22%2Bv.playbackRate%2B%22%5D%22))%3B%7Dvoid(0)%3B

Here's the easier to read version of the same code:


{
  var v = document.getElementsByTagName("video")[0];
  v.playbackRate = parseFloat(prompt("Playback rate? ["+v.playbackRate+"]"));
}
void(0);

Drag this link to your bookmark bar to create a bookmark you can use on YouTube.

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?