I have a HTML5 video with custom controls in normal screen. Don\'t have custom controls at full screen. I just show default controls at full screen. But when exitin
Here is an updated code as for now (Jun 4th 2017), works on all browsers:
if (document.exitFullscreen)
document.exitFullscreen();
else if (document.webkitExitFullscreen)
document.webkitExitFullscreen();
else if (document.mozCancelFullScreen)
document.mozCancelFullScreen();
else if (document.msExitFullscreen)
document.msExitFullscreen();