How To Set Video Speed Html

Source URL: https://stackoverflow.com/questions/3027707/how-to-change-the-playing-speed-of-videos-in-html5

Language: html

Created on: 2020-10-12 07:41:53

/* 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;
How to change the video play speed in HTML5? I've checked video tag's attributes in w3school but couldn't approach that.Any help would be appreciated!
content_copy