Forum Discussion
CJLu
9 hours agoCommunity Member
Is there a way to prevent the storyline video player from disappearing?
Hey all,
Is there a way to keep the video player visible after I select it to play?
Once I click play and move the mouse, it disappears briefly.
Thanks! :)
Nedim
7 hours agoCommunity Member
Check this post that inolves JavaScript fix.
https://community.articulate.com/discussions/discuss/how-to-set-video-controls-to-always-show/900083/replies/1215123
CarlFink1
3 hours agoCommunity Member
I gather that the flicker involves hiding/showing the controls of the player?
- Nedim3 hours agoCommunity Member
It's the default Storyline functionality when video controls are enabled. The video controls disappear after a short period of mouse inactivity and reappear when you move the mouse again. The script below prevents this from happening, keeping the video controls visible at all times regardless of mouse activity.
const controls = document.querySelector(".video-animation-container"); controls.classList.remove("controls-hidden"); const observer = new MutationObserver((mutationsList) => { for (const mutation of mutationsList) { if ( mutation.type === "attributes" && mutation.attributeName === "class" ) { if (controls.classList.contains("controls-hidden")) { controls.classList.remove("controls-hidden"); } } } }); observer.observe(controls, { attributes: true, attributeFilter: ["class"] });
Related Content
- 10 months ago