Html5 Video Playback Rate August 20, 2024 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); CopyFurthermore, 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:functionsetPlaySpeed() { 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"