Forum Discussion
RussLickteig
28 days agoCommunity Member
Video Controls. Enable and Disable
Hi.....I know how to "turn on" video controls but I want to be able to turn them on and off with script. For example I do NOT want them available when someone first comes to a slide with a video on ...
RussLickteig
21 days agoCommunity Member
Thanks for the ideas!!! I ended up doing a JavaScript option that only requires the one video and it turns off the seek bar. I have "Video1Complete" set to False by default. Video controls are set to on by default. First time the video is watched the variable is by default False which means the JavaScript shuts off the seek bar. Once "Video1Complete" switches to "True" then the seek bar is available.
/* Hide the Storyline video playback bar */
(function hideSeekbar () {
// search for the root div : <div class="video-seekbar draggable …">
var seekbar = document.querySelector('.video-seekbar.draggable');
if (seekbar) {
seekbar.style.display = 'none'; // on la cache
} else {
// If it's not yet in the DOM, we'll try again in 150ms.
setTimeout(hideSeekbar, 150);
}
})();
Related Content
- 10 months ago
- 12 months ago