We moved this page to our Documentation Portal. You can find the latest updates here. |
Question
Stream using RTMPe
Environment
OnApp CDN
Answer
Enable secure Wowza upon live streaming resource creation and fill in the secure token.
For the flow player embed code, please refer to the following example:
<h1>FLOW SMIL</h1>
<a
href="http://video.onappcdn.net/12946278/livestream.smil"
style="display:block;width:520px;height:330px"
id="player">
</a>
<script type="text/javascript" src="flowplayer/flowplayer-3.2.10.min.js"></script>
<script>
flowplayer("player", "flowplayer/flowplayer-3.2.11.swf",
{
plugins: {
smil: { url: "flowplayer/flowplayer.smil-3.2.8.swf" },
rtmp: { url: "flowplayer/flowplayer.rtmp-3.2.10.swf" },
secure: { url: "flowplayer/flowplayer.securestreaming-3.2.8.swf", token: escape('apppp&&')}
},
clip: {
provider: 'rtmp',
autoPlay: false,
urlResolvers: ['smil'],
connectionProvider: 'secure'
}
});
</script>
You will need to change:
(1) <href="http://video.onappcdn.net/12946278/livestream.smil" > to <<href="http://video.[yourdomain.com]/[resource ID]/[stream name].smil">
(2) token: escape('apppp&&') , change the 'apppp&&' to the secure token you have set up.