Video playback at half speed
-
I maintain a weather website that shows time lapse videos. Some of them play very fast and I want to offer the user a way to slow them down. On the URL below look down to the video after TEST. The script I am using is this. On the W3Schools website it works fine but on my site it doesn’t work.
Although I am okay at WordPress, I am not a coder. Can someone please help?
Thanks,
Bob
===================================================================
<button onclick=”setPlaySpeed()” type=”button”>Set video to be played in slow motion at half speed</button><br><video id=”myVideo” width=”960″ height=”780″ controls>
<source src=”https://www.bobhatcherweather.com/wp-content/uploads/iptimelapse/02oneaday.mp4″ type=”video/mp4″ type=”video/mp4″>
<source src=”https://www.bobhatcherweather.com/wp-content/uploads/iptimelapse/02oneaday.mp4″ type=”video/mp4″ type=”video/ogg”>
Your browser does not support HTML5 video.
</video><script>
var vid = document.getElementById(“myVideo”);function getPlaySpeed() {
alert(vid.defaultPlaybackRate);
}function setPlaySpeed() {
vid.defaultPlaybackRate = 0.5;
vid.load();
}
</script></body>
The page I need help with: [log in to see the link]
- The topic ‘Video playback at half speed’ is closed to new replies.