Forum Discussion
SaadSiddiqui-4f
5 years agoCommunity Member
Using JavaScript to change the playback rate of Audio and Video
I'm using the following code to provide variable playback speed in the course.
var player = GetPlayer();
var x = document.getElementsByTagName('video')[0];
x.playbackRate = 2.0;
The code...
SaadSiddiqui-4f
5 years agoCommunity Member
Hello Math,
Thank you so very much! It is a great help.
I was putting this code on each individual slide with only 1 video on each slide.
Try to provide ID to the element also but it was still working for the first slide, not the others.
Your looping works. Thank you again!
Kind Regards,
Saad Siddiqui
Related Content
- 6 months ago