video - Show/Hide Videojs controls at runtime -
is there way show/hide video controls on videojs player @ runtime (e.g. player.controls.hide()).
ideas how this? thanks!
this how hide controls after 1 second mouse inactivity timeout.
var inactivitytimeout = null; $('#vmr_video').mousemove(function(event) { player.controlbar.fadein(); if (inactivitytimeout != null) { cleartimeout(inactivitytimeout); } inactivitytimeout = settimeout(function(){ player.controlbar.fadeout(); controlbarvisible = false; }, 1000); });
Comments
Post a Comment