Answers for "How to set the playback speed of audio/video? in html"

4

how to set video speed html

/* play video twice as fast */
document.querySelector('video').defaultPlaybackRate = 2.0;
document.querySelector('video').play();

/* now play three times as fast just for the heck of it */
document.querySelector('video').playbackRate = 3.0;
Posted by: Guest on October-12-2020

Code answers related to "How to set the playback speed of audio/video? in html"

Browse Popular Code Answers by Language