Skip to content

jachinn/html5-video-playback-rate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

html5-video-playback-rate

A bookmarklet for tweaking playback rate of HTML5 videos.

Add as a new bookmark: javascript:(function() {var script = document.createElement('script'); script.src='https://github.com/jachinn/html5-video-playback-rate/script.js'; document.body.appendChild(script);})();

Or, if your adblocker is keeping the bookmarklet from working, add: javascript:(function() {var media = document.querySelectorAll('video,audio'); var rate = prompt('Speed? Currently playing back at ' + media[0].playbackRate + 'x.', ''); Array.prototype.forEach.call(media, function(player) {if (rate == null) {return;} else if (rate != 0) { player.playbackRate = rate; } else {player.playbackRate = 1;}}); })();

Clicking the bookmarlet on a page with a video or embedded audio will open a prompt asking for playback speed. You can change speeds as many times as you like. Speeds over 4x and speeds 0.4x and slower will play video without audio (this is normal behavior for HTML5 video.)

Works on any HTML5 video or audio player. Will change the playback speed of all media on the page.

About

A bookmarklet for tweaking playback rate of html5 videos.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published