Is there any option to disable auto hide control bar? Or if not, where I should change source code to add this functionality?
You can use the designer, and remove this style block from the CSS.
https://github.com/videojs/video.js/blob/v4.3.0/src/css/video-js.less#L179
That's where the controls hide themselves when the user is 'inactive'.
Any idea how to do this in latest 5.10.4 version? Can I do it without modifying origin video-js.css ? Thanks.
https://stackoverflow.com/questions/17524198/how-to-hide-video-js-player
var videoid =document.getElementsByClassName("vjs-control-bar");
videoid[0].style.setProperty("display", "none", "important");
Not working on 5.20.x :(
@mizmaar3
I found this somewhere else online, I think it may work: data-setup='{ "inactivityTimeout": 0 }'
the inactivityTimeout option set to 0 is the currently supported way to do so, as @y4my4my4m mentioned.
Ok will try
I have tried inactivityTimeout in 7.3.0 and it does not seem to do anything, any other way to stop the controls from hiding?
I've the same issue too.
Most helpful comment
the
inactivityTimeoutoption set to0is the currently supported way to do so, as @y4my4my4m mentioned.