Created
March 20, 2014 19:52
-
-
Save giannif/9672402 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // player is the MTVNPlayer.Player object created by the embed api | |
| player.on("stateChange:paused", function(event){ | |
| // we don't want to do this for flash | |
| if(MTVNPlayer.isHTML5Player){ | |
| if(!event.target.element.webkitDisplayingFullscreen){ | |
| alert("show your poster screen, we're not in full screen"); | |
| } | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment