Hi,
when player plays, control will be hidden, is there a way to keep it in the screen? Thanks
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
});
Most helpful comment
@angelochen960 You can also use
player = videojs('player', { inactivityTimeout: 0 });