Skip to content

Instantly share code, notes, and snippets.

@chucktrukk
Created September 26, 2011 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chucktrukk/1242387 to your computer and use it in GitHub Desktop.
Save chucktrukk/1242387 to your computer and use it in GitHub Desktop.
var toggleFullScreen = false;
jQuery(document).ready(function($) {
$('#toggleButton').click(function() {
toggleFullScreen = true;
flowplayer.pause();
toggleFullScreen = false;
})
});
flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
clip: {
autoPlay: false,
autoBuffering: true,
onBeforePause: function() {
if (toggleFullScreen) {
this.toggleFullscreen();
return false; //cancel the pause
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment