HTML5 increase youtube speed 2x from url? -
i know how speed youtube video 2x without user clicking on html5 (of video), instead modifying url.
for example, know how watch video starting @ specific time appending url parameter &t=1m1s
(for 1 minute , 1 second). is possible use similar method speed video 2x?
what parameters should add url watch video in double speed (i'm using html5)?
there's no way change playback speed url arguments.
anyway, if you're working html, can take advantage of youtube player iframe api.
here's how configure player javascript: https://developers.google.com/youtube/iframe_api_reference#getting_started
and here's function you're looking set playback speed: https://developers.google.com/youtube/iframe_api_reference#playback_rate
so can edit onplayerready function this:
function onplayerready(event) { player.setplaybackrate(2); // you're looking event.target.playvideo(); }
you can of course pass on step 5 of documentation stop video playing after 6 seconds.
if have trouble setting up, i'll edit jsfiddle later (couldn't @ work flash plugin won't launch).
update :
here's jsfiddle working fine code exactly: http://jsfiddle.net/jpreynat/e11oy0eu/
Comments
Post a Comment