javascript - Force Chrome (38) to exit full screen mode -


I have a webpage that uses the History API to navigate between pages without refreshing the whole page. This works great on desktop and mobile till end chrome update (38.0.2125.102) on Android.

The problem is with the browser's full screen mode: When a user comes to our site there is a link to a video gallery, he clicks it and opens a lightbox with a vimeo embedded video in it Then he taps to watch the video and it goes completely (a message appears above the browser which is in full screen mode). If the user closes like a video suggestion (as pulling up from the bottom) everything works as expected, but if that device taps the 'back' button, then the browser can send a few videos (I still can hear it somewhere) Actually leave the full screen mode (when the user stole from the top, the stuff is messing up).

I have come to know that when the user has taped that button, and my question is, can I force the browser to leave the fullscreen mode via javascript?

Thanks

As mentioned above on the comment:

Click the back button at

, you can check that the current document is in full screen ( document.webkitIsFullScreen ) and in case of cancellation ( document.webkitCancelFullScreen (); ).


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -