Skip to content

Instantly share code, notes, and snippets.

@giannif
Created March 20, 2014 19:52
Show Gist options
  • Save giannif/9672402 to your computer and use it in GitHub Desktop.
Save giannif/9672402 to your computer and use it in GitHub Desktop.
// 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