Video interface :Hide Controls on mouse inactivity?

  • Say the video is a long playing one, the controls are kinda visually distracting (if not needed) so whats the best way to hide the controls when not needed and then return them on mouse activity?

  • Yep it's the only way. Elsewhere it's only on these kind of events : onmousedown/onmouseup/onkeydown/onkeyup.

    For delay change the idletime value (default is 0.5) and use onidle event to hide interface.
    Use a mouse move detection action as said above to restore the interface.

  • I have had success with this JS, But it stops working after a few browser refreshes?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!