Show/Hide Videojs controls at runtime

edtheprogrammerguy picture edtheprogrammerguy · May 13, 2013 · Viewed 9.5k times · Source

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!

Answer

Tamlyn picture Tamlyn · Mar 4, 2015

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.