Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show/Hide Videojs controls at runtime

Is there a way to show/hide the video controls on the videojs player at runtime (e.g. player.controls.hide()).
Any ideas how to do this? Thanks!

like image 917
edtheprogrammerguy Avatar asked May 13 '13 02:05

edtheprogrammerguy


1 Answers

Use player.userActive(false) to hide the controls. You can also listen to useractive and userinactive events on the player to respond to the player's natural showing and hiding of controls.

like image 112
Tamlyn Avatar answered Sep 29 '22 13:09

Tamlyn