HTML5 Video Playback Rate January 11, 2023 Post a Comment I'm trying to use a drop down window to be able to change the rate of which a video is playing at. I've added the options on markup here: Solution 1: You should listen for the event change not select: playRate.addEventListener("change", setPlaySpeed); Copy Furthermore, you should use playRate.value to get the value of the select. Then use parseFloat to get the float value of the returned string. This results in the following function: function setPlaySpeed() { var rate= playRate.value; video.playbackRate= parseFloat(rate); } Copy Share Post a Comment for "HTML5 Video Playback Rate"
Post a Comment for "HTML5 Video Playback Rate"