Hello everyone,
With the help of Blacktrash on this forum I was able to get the RTMP Streaming plugin to work fine with simpleCDN.
I then started to try to get the Secure Streaming plugin to work with simpleCDN by modifying my existing code but I get the Flowplayer error:
I have placed the secure plugin (flowplayer.securestreaming-3.1.1.swf) in the same folder where I place all of my Flowplayer files.
It's not entirely clear, but in some parts of the Flowplayer site it indicates that simpleCDN uses wowza and that the provider for the secure streaming plugin is "wowza."
I changed the provider from "simplecdn" to "wowza" and changed the url in the plugin so that it now points to the secure streaming plugin and not to the RTMP streaming plugin. I assume we only use one plugin.
I added a timestamp and token as per the flowplayer demo. For now, the token is visible in the <html>. When I get secure streaming to work I'll compile the token and part of the video file's URL in Flowplayer.
Does someone see/know what the problem/solution is?
Thanks!
-JB
With the help of Blacktrash on this forum I was able to get the RTMP Streaming plugin to work fine with simpleCDN.
I then started to try to get the Secure Streaming plugin to work with simpleCDN by modifying my existing code but I get the Flowplayer error:
202, The provider specified in this clip is not loaded.
I have placed the secure plugin (flowplayer.securestreaming-3.1.1.swf) in the same folder where I place all of my Flowplayer files.
It's not entirely clear, but in some parts of the Flowplayer site it indicates that simpleCDN uses wowza and that the provider for the secure streaming plugin is "wowza."
I changed the provider from "simplecdn" to "wowza" and changed the url in the plugin so that it now points to the secure streaming plugin and not to the RTMP streaming plugin. I assume we only use one plugin.
I added a timestamp and token as per the flowplayer demo. For now, the token is visible in the <html>. When I get secure streaming to work I'll compile the token and part of the video file's URL in Flowplayer.
Does someone see/know what the problem/solution is?
Thanks!
-JB
//I'm getting the following Flowplayer error:
//202, The provider specified in this clip is not loaded.
function playVideo(videoUrl) {
//simpleCDN RTMP streaming plugin needed a file prefix
//that matches the file extension
if (videoUrl.match(/.flv/) ) {
videoUrl = 'flv:<my upload bucket>' + videoUrl;
} else if (videoUrl.match(/.mp4/) ) {
videoUrl = 'mp4:<my upload bucket>' + videoUrl;
} else if (videoUrl.match(/.mp3/) ) {
videoUrl = 'mp3:<my upload bucket>' + videoUrl;
}
flowplayer("player", {src: 'flowplayer.commercial-3.1.5.swf', wmode: 'opaque'}, {
key: 'XXXXXXXXXXXXXXX',
clip: {
autoPlay: true,
autoBuffering: true,
scaling: 'scale',
provider: 'wowza',
url: videoUrl
},
plugins:{
wowza: {
url: 'flowplayer.securestreaming-3.1.1.swf',
//the RTMP plugin worked fine when using provider: simplecdn
//for RTMP streaming with simpleCDN
//I assume we don't use this plugin when we use the
//woza secure streaming plugin
//url: 'flowplayer.rtmp-3.1.3.swf',
timestamp: '<?php echo time(); ?>',
token: 'simplek',
netConnectionUrl: 'rtmpt://e1f1.simplecdn.net/play'
}
},
}
);
}