Forum Discussion
Remove Playback Speed Option on Video Controls
Hello Heros!
I am wondering if there is a way to remove the playback speed button on the video controls. Our courses are gated by time, and some learners are watching the videos at 2X, which is messing with the timing triggers.
Thanks in advance.
Elizabeth
- NedimCommunity Member
Hi Elizabeth,
That can be done only with Javascript. Execute Javascript when the timeline starts on this slide:document.querySelector('.video-playback-speed').style.display = 'none';
- ElizabethEva592Community Member
Thank you so much Nedim! That did the trick!
Elizabeth
- TimMilke-1f6022Community Member
Is this a consistent fix? Dealing with something right now, using the above, where the user will resize the browser window, and the controls will pop back in.
- NedimCommunity Member
This line of JavaScript hides the "Playback Speed" icon on the page. Setting the CSS display property to none removes the icon from the document layout, making it invisible. It should remain hidden even when the browser window is resized. Could you please record the issue or upload your .story file for troubleshooting? This would help in identifying the problem more accurately.
- TimMilke-1f6022Community Member
The client mentioned that increasing the size of the browser kicked in the buttons, but for me, only shrinking it did. This is happening in Firefox, and Brave (mac), and Edge (win). Have not tested in other browsers.