This is a message.

secure streaming plugin not loaded with simpleCDN Created Nov 20, 2009

This thread is solved

Views: 3506     Replies: 3     Last reply Nov 20, 2009  
You must login first before you can use this feature

jb123

Posts: 31

Registered:
Oct 16, 2009

secure streaming plugin not loaded with simpleCDN

Posted: Nov 20, 2009

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:

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' 
	}				
},			
}
);
}

jb123

Posts: 31

Registered:
Oct 16, 2009

» secure streaming plugin not loaded with simpleCDN

Posted: Nov 20, 2009

Reply to: secure streaming plugin not loaded with simpleCDN , from jb123
Update:
I tried different syntax and now the Flowplayer error is that the connection is not establed and the secure token was not received from the server.

Flowplayer developers,
You have a great product and you recommend using simpleCDN.
It would be very helpful if you provided a documented sample that shows how to use the streaming plugin with the secure plugin. It's hard to just guess the correct implementation.

Please note that your demo code samples show setting the file name in the anchor tag. That is impractable for my implementation as I need to pass the file URL into the javascript function. Can you please show how to get this to work by passing the url in to this function. I got this to work in 10 minutes for progressive download and then with some help from a forum member got rtmp streaming to work.

Please help and point out what I am doing wrong here :>

Thanks!
-JB


function playVideo(videoUrl) {

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: 'XXXXXXXXXXXXX',
clip: {
	autoPlay: true,
	autoBuffering: true,
	scaling: 'scale',

	provider: 'wowza',
	connectionProvider: 'secure', 
	url: videoUrl											
},			
plugins:{			
	wowza: {         
		url: 'flowplayer.rtmp-3.1.3.swf',						
		netConnectionUrl: 'rtmpt://e1f1.simplecdn.net/play'
	},
	secure: {
		url: 'flowplayer.securestreaming-3.1.1.swf',
		timestamp: '<?php echo time(); ?>',
		token: 'simplek'
	} 
},			
}
);
}

jb123

Posts: 31

Registered:
Oct 16, 2009

» » secure streaming plugin not loaded with simpleCDN

Posted: Nov 20, 2009

Reply to: » secure streaming plugin not loaded with simpleCDN , from jb123
I found a Flowplayer demo for using the streaming and secure plugins and it states the netConnectionUrl should be

 netConnectionUrl: 'rtmp://flowplayer.org:1935/securestreaming?doConnect=1gt345'

So I commeted out the netConnectionUrl I was previously using and worked to implement rmpt streaming and changed it to:


//netConnectionUrl: 'rtmpt://e1f1.simplecdn.net/play'
netConnectionUrl: 'rtmp://flowplayer.org:1935/securestreaming?doConnect=1gt345'

Now the Flowplayer error is:

unable to load stream.. clip.. connection failed... secure token was not accepted by the server.

Generally speaking, in the last 15 years I don't have significant problem reading software documentation and APIs... there must be something I'm missing here..

Thank you,
-JB

jb123

Posts: 31

Registered:
Oct 16, 2009

SimpleCDN does not support Secure Streaming until Wowza 2

Posted: Nov 20, 2009

Reply to: » » secure streaming plugin not loaded with simpleCDN , from jb123
I heard back from SimpleCDN support.
............................................................................................

From: SimpleCDN Support <support@simplecdn.com>
To: Jerry.....
Sent: Fri, November 20, 2009 1:07:50 PM
Subject: [SUPPORT #OVW-252477]: secure streaming + rtmp + Flowplayer

Hi Jerry,

Thanks for your email. We currently do not support secure streaming via RTMP - this is an optional feature that we'll be supporting in a few weeks with the release of Wowza 2. For now you should just use the basic RTMP streaming setup.

Thanks,

Tony
----------------------------------------------------
SimpleCDN Support
Available 24/7
............................................................................................

Currently, SimpleCDN only supports HTTP Progressive Download and RTMP Streaming. In a few weeks they will release Wowza 2 and then they will support Secure Streaming.

Question:
Flowplayer Developer(s):

Will and when will do you anticipate that you'll be able to post a demo that shows how to configure Flowplayer to simultaneoulsy use RTMP Streaming and Secure Streaming with SimpleCDN?

In additon, it would have been helpful and saved several hours of wasted time if you folks had simply indicated on your site (unless I missed seeing it) that SimpleCDN does not currently support secure streaming and that you are only using RTMP streaming with them.

Thanks,

Jerry