I have flowplayer working with RTMP on CloudFront:http://www.go2southwest.com/flowplayer/fpstandalonecf.html
I also have flowplayer working with the Overlay plugin, using HTTP:
http://www.go2southwest.com/flowplayer/fpoverlayhttp.html
But I can't seem to get RTMP working with the Overlay plugin.
My working RTMP:
JavaScript:
My working Overlay HTML:
JavaScript:
Now... If I could just get the Overlay to use RTMP
I also have flowplayer working with the Overlay plugin, using HTTP:
http://www.go2southwest.com/flowplayer/fpoverlayhttp.html
But I can't seem to get RTMP working with the Overlay plugin.
My working RTMP:
<head>
<!-- it's recommended to load jquery directly from googleapis. fast and gzipped -->
<script src="jquery.min.js"></script>
<!-- flowplayer scripts should be loaded from your servers NOT from static.flowplayer.org -->
<script type="text/javascript" src="flowplayer-3.2.0.min.js"></script>
</head>
<!-- some styling for the standalone page. this line can (or must) be removed -->
<link rel="stylesheet" type="text/css" href="standalone.css"/>
<body>
<!-- player container-->
<!--
href points to the video file in our CloudFront bucket.
We have a folder called 'examples' in the bucket and the file is contained there.
Amazon CloudFront uses the Adobe's RTMP server and therefore
we remove the file extension .flv from the url
-->
<a href="2010_05_30"
style="display:block;width:425px;height:300px;"
id="rtmpPlayer">
<!-- splash image inside the container -->
<img src="http://media.go2southwest.com.s3.amazonaws.com/images/google-445x245.jpg" alt="Search engine friendly content" />
JavaScript:
<!-- Flowplayer installation and configuration -->
<script language="JavaScript">
flowplayer("rtmpPlayer", "flowplayer-3.2.1.swf", {
// configure the required plugins
plugins: {
// the RTMP plugin
rtmp: {
url: 'flowplayer.rtmp-3.2.0.swf',
// netConnectionUrl has our CloudFront domain name + 'cfx/st'
netConnectionUrl: 'rtmp://s2fbqgj15jzvbf.cloudfront.net/cfx/st'
}
},
clip: {
// use the RTMP plugin
provider: 'rtmp'
}
});
My working Overlay HTML:
<head>
<!-- jQuery Tools -->
<script src="jquery.tools.min.js"></script>
<!-- flowplayer scripts -->
<script type="text/javascript" src="flowplayer-3.2.0.min.js"></script>
</head>
<!-- styling -->
<link rel="stylesheet" type="text/css" href="standalone.css"/>
<body>
<style>
div.overlay {
padding:40px;
width:576px;
display:none;
background-image:url(overlay/white.png);
}
div.overlay div.close {
background:url(overlay/close.png) no-repeat;
position:absolute;
top:2px;
right:5px;
width:35px;
height:35px;
cursor:pointer;
}
div.overlay a {
height:450px;
display:block;
}
</style>
<!-- button that opens up overlay -->
<p>
<button href="#" rel="div.overlay">Open overlayed video</button>
</p>
<!-- element that is overlayed, visuals are done with external CSS -->
<div class="overlay" style="background-image:url('overlay/white.png')">
<!-- flowplayer container -->
<a id="player" href="http://media.go2southwest.com.s3.amazonaws.com/2010_05_30.flv">
<!-- some initial content so that player is not loaded upon page load -->
</a>
JavaScript:
<script>
$(function() {
// install flowplayer into flowplayer container
var player = $f("player", "flowplayer-3.2.1.swf");
// setup button action. it will fire our overlay
$("button[rel]").overlay({
// use the Apple effect for overlay
effect: 'apple',
// when overlay is opened, load our player
onLoad: function() {
player.load();
},
// when overlay is closed, unload our player
onClose: function() {
player.unload();
}
});
});
Now... If I could just get the Overlay to use RTMP