HTML5 full screen API not working in Firefox , IE
<p>I want to detect the HTML5 video fullscreen mode. The code below is working fine only for chrome. The code is not working for Firefox and IE. I dont have Safari but i want it to work in Safari as well.</p>

<pre><code> video.addEventListener('webkitfullscreenchange', fullscreenHandler, false);
 video.addEventListener('mozFullScreenElement', fullscreenHandler, false);
 video.addEventListener('fullscreenElement', fullscreenHandler, false);
 video.addEventListener('requestFullscreen', fullscreenHandler, false);

function fullscreenHandler()
{
//fullscreen code
}
</code></pre>

<p>I have tried different methods but only working in chrome. Can anyone help me to fix this issue. Its been one whole day i am searching on google but could not find any solution. Help would be appreciated.</p>