Video.js: Disable auto hide controls

Created on 8 Feb 2014  路  9Comments  路  Source: videojs/video.js

Is there any option to disable auto hide control bar? Or if not, where I should change source code to add this functionality?

question

Most helpful comment

the inactivityTimeout option set to 0 is the currently supported way to do so, as @y4my4my4m mentioned.

All 9 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeonghwaYoo picture jeonghwaYoo  路  3Comments

borm picture borm  路  3Comments

kocoten1992 picture kocoten1992  路  4Comments

askaliuk picture askaliuk  路  3Comments

uikoo9 picture uikoo9  路  4Comments