Video.js: keep control on the screen

Created on 5 Apr 2013  路  5Comments  路  Source: videojs/video.js

Hi,

when player plays, control will be hidden, is there a way to keep it in the screen? Thanks

Most helpful comment

@angelochen960 You can also use
player = videojs('player', { inactivityTimeout: 0 });

All 5 comments

You can override the styles for vjs-fade-out to keep the controls visible:

.vjs-controls.vjs-fade-out {
opacity: 1 !important;
visibility: visible !important;
}

Hello,

I tried this styles, but it's not working. Maybe too old.

Yeah, that note is out of date. We changed the controls to use CSS states. Try this.

.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
  visibility: visible;
  opacity: 1;
}

Very good for me. Thanks !

@angelochen960 You can also use
player = videojs('player', { inactivityTimeout: 0 });

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dingyaguang117 picture dingyaguang117  路  4Comments

askaliuk picture askaliuk  路  3Comments

uikoo9 picture uikoo9  路  4Comments

stephanedemotte picture stephanedemotte  路  4Comments

zhulduz picture zhulduz  路  3Comments