Skip to content

Instantly share code, notes, and snippets.

@franciscoj
Created September 9, 2010 09:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franciscoj/571643 to your computer and use it in GitHub Desktop.
Save franciscoj/571643 to your computer and use it in GitHub Desktop.
How to include a flowplayer video inside a fancybox modal window
<!-- Don't forget to include flowplayer js and fancybox js and css -->
<div style="width:665px;height:480px;display:none;" id="player">
</div>
<a id="play-flv-video" href="#player">Play video</a>
<script language="JavaScript">
$(document).ready(function() {
$("a#play-flv-video").fancybox({
'scrolling': false,
'titleShow': false,
'padding' : 0,
'onStart' : function() {
$("#player").show();
$f("player",
"/swf/flowplayer-3.2.3.swf",
"/video/myvideo.flv");
},
'onClosed' : function() {
$("#player").hide();
$f().unload();
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment