Forum Discussion
Disable dragging a video seekbar in Storyline 360
- 2 years ago
Hi Everyone! I did some JavaScript to make this work by simply adding an Execute JavaScript when the timeline starts Trigger.
These are the JS codes:
// One liner function:
const addCSS = css => document.head.appendChild(document.createElement("style")).innerHTML=css;
// Usage:
addCSS(".video-seekbar {display: none;} .modern-video-controls .video-controlbar {height: 50px !important;}")
Thank you so much, everyone!
If you cover the video controls with a 99%-transparent shape, the user won't be able to use the controls. (That's transparent enough that it won't be visible, but it will prevent clicking the controls.)
FYI: You can hide that shape when the video is done so the user can access the controls for replaying.
Hi Judy, thanks for this but if that's the case, the seek bar is still accessible when using the keyboard (tab and arrow keys).