I want to call function which opens sidenav in webpage. But I want to do it when my mouse cursor goes out of the screen in full =screen mode of video in HTML5. What should I do?
Asked
Active
Viewed 41 times
2 Answers
1
Something like this
$('video#my-video').bind('webkitfullscreenchange mozfullscreenchange fullscreenchange', function(e) {
var state = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;
var event = state ? 'FullscreenOn' : 'FullscreenOff';
// Now add mouse detection and display nav if mouse is where you want it
});

K.G
- 121
- 7
0
You cannot register an event for that so I dont think its possible.Also, if you are in fullscreen mode, how will you go out of the screen. You can only move it to a corner and not out of the screen.

Malcolm Vaz
- 131
- 5
-
out of the screen means at the edge of the screen. – Sanket Modak Feb 06 '17 at 08:14