You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

RTMP Streaming to Internap CDN Created Mar 12, 2009

This thread is solved

Views: 5635     Replies: 10     Last reply Aug 8, 2011  
You must login first before you can use this feature

CPtacek

Posts: 1

Registered:
Mar 12, 2009

RTMP Streaming to Internap CDN

Posted: Mar 12, 2009

Were trying to use the flowplayer but have hit a wall. Seems Internap CDN does things differently. Can anyone give an idea on how it implement these changes:

CDN Flash Live Player Modification Technote:

Internap Content Delivery Network (CDN) customers who are delivering live Flash streaming events may be required to modify their Flash player in order for their end-users to connect to the live stream. This applies to Flash players that are custom built or ?off-the-shelf? Flash players such as the JW Player. Player modification is not required for the Flash players provided through Internap MediaConsole, or Flash players that have been developed by Internap Professional Services.

Custom Flash Players Not Built with FLVPlayback Component

The following information pertains to customers with custom Flash players that are not built with the FLVPlayback component. Players with FLVPlayback do not provide access to the NetConnection object and cannot be modified.

The player modification requires access to the NetConnection object, which is used to create a connection between the Flash player and the Flash server. The stream name needs to be passed as a parameter in the NetConnection#connect call.

Normally, a player just passes the stream name in the NetStream#play call.

var nc = new NetConnection();

var aname = "rtmp://cust.internapcdn.net/cust_vitalstream_com/_definst_";
var sname = "live_asdf";

nc.connect(aname);
...
...
NetStream#play(sname);

However, the Internap CDN requires the following additional parameters in the NetConnection#connect call.

nc.connect(aname, false, sname);

If you are playing a live stream, pass in false and sname as the additional parameters.
The stream name will still need to be passed in the NetStream#play( ) call.

Customers Using JW Flash Player

Customers who are using the JW Flash Player will need to modify the player as described below.

One function in RTMPModel.as needs to be changed. Specifically, the bare call to:

connection.connect(model.config['streamer']);

needs to be replaced with the bolded content on the following page.

/** Load content. **/
public function load():void {
var results:Array = model.config['file'].match(/^([a-zA-Z0-9]+:)?(live_.*)/);
if(results && results[2]) {
connection.connect(model.config['streamer'], false, results[2]);
} else {
connection.connect(model.config['streamer']);
}
model.sendEvent(ModelEvent.STATE,{newstate:ModelStates.BUFFERING});
};

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» RTMP Streaming to Internap CDN

Posted: Mar 12, 2009

Reply to: RTMP Streaming to Internap CDN, from CPtacek
You should edit the RTMP plugin and it's RTMPStreamProvider class. The connection is established there. The sources are available in google code:http://code.google.com/p/flowplayer-plugins/

In version 3.1 we will introduce a new concept that we call "connectionProviders". It's a simple plugin that will make it possible to just customize how the player creates connections. After that we can implement a InternapConnectionProvider that does the job...

maxrog

Posts: 1

Registered:
Apr 15, 2009

» » RTMP Streaming to Internap CDN

Posted: Apr 21, 2009

Reply to: » RTMP Streaming to Internap CDN, from Anssi
We are on version 3.1 - and I would be very interested in learning about how we can implement a InternapConnectionProvider. Any pointers?

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» » » RTMP Streaming to Internap CDN

Posted: Sep 23, 2009

Reply to: » » RTMP Streaming to Internap CDN, from maxrog
Internap is now supported with our development version of the RTMP plugin. It allows you to pass connection arguments as described in CPtacek's post. the dev version is here.

Configarion is like this using the same stream names and URLs as in CPtacek's post:


clip: { 
    url: 'live_asdf', 
    netConnectionUrl: 'rtmp://cust.internapcdn.net/cust_vitalstream_com/_definst_', 
    connectionArgs: [ false, 'live_asdf' ], 
    provider: 'internap',
    live: true
},
plugins: { 
   internap: { 
        url: 'flowplayer.rtmp-3.1.3-dev.swf' 
   } 
} 

jbialy

Posts: 1

Registered:
Nov 5, 2009

» » » » RTMP Streaming to Internap CDN

Posted: Nov 5, 2009

Reply to: » » » RTMP Streaming to Internap CDN, from Anssi
Reading the rtmp plugin documentation I was under the impression that "connectionArgs" can be specified within the rtmp plugin context as so:


clip: {  
    url: 'live_asdf',  
    provider: 'internap', 
    live: true 
}, 
plugins: {  
   internap: {  
        url: 'flowplayer.rtmp-3.1.3-dev.swf',  
		netConnectionUrl: 'rtmp://cust.internapcdn.net/cust_vitalstream_com/_definst_',  
		connectionArgs: [ false, 'live_asdf' ] 
   }  
} 

Although the above didn't seem to work for me. I double and triple checked my syntax just to make sure I didn't make a mistake and no go. The example by Anssi works fine but it would be great if the property worked as advertised in the docs.

Also, I don't think "connectionArgs" is available in the Clustering nor the Bandwidth Check plugins, which renders them useless with providers like Internap. Adding such support would be great.

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» » » » » RTMP Streaming to Internap CDN

Posted: Nov 5, 2009

Reply to: » » » » RTMP Streaming to Internap CDN, from jbialy
FIxed the RTMP plugin documentation.

Janusz

Posts: 3

Registered:
Aug 7, 2009

» » » » » » RTMP Streaming to Internap CDN

Posted: Nov 6, 2009

Reply to: » » » » » RTMP Streaming to Internap CDN, from Anssi
Thanks, is there any way to pass extra args in the clustering / bwcheck plugins without recompiling?

jzachary

Posts: 1

Registered:
Nov 18, 2009

» » » » RTMP Streaming to Internap CDN

Posted: Nov 18, 2009

Reply to: » » » RTMP Streaming to Internap CDN, from Anssi
I used the embed code from Anssi, but the player just shows up as a black box. I have the correct CDN information for internap, and I and using the dev swf am i missing something?

I'm not sure if the player is failing on the embed or if its not connecting to Internap. Will it still show the controls and what not even if its not connecting? or does the blank black box indicate an embed issue?

jamie

minddog

Posts: 3

Registered:
Feb 11, 2010

» » » » RTMP Streaming to Internap CDN

Posted: Feb 11, 2010

Reply to: » » » » RTMP Streaming to Internap CDN, from jzachary
It doesn't work for me at all. I don't even get the black box.
I am using flowplayer-3.1.5.swf hosted on my server.
Very frustrating. Would love to purchase a commercial license for this player as the demos look so good but I have to get it to work first.

marcorogers

Posts: 1

Registered:
Apr 1, 2010

» » » » RTMP Streaming to Internap CDN

Posted: Apr 1, 2010

Reply to: » » » RTMP Streaming to Internap CDN, from Anssi
This worked fine for me with a few changes. I'm not streaming live so left that flag out and I put the netConnectionUrl in the plugin config since it's always the same for me.



clip: { 
	autoPlay: false, 
	autoBuffering: true, 
	provider:'internap',
	url: 'clipname',
	connectionArgs: [false, 'clipname' ], 
},
plugins: {
	internap:{
                  url:'flowplayer.rtmp-3.1.3.swf',
                  netConnectionUrl:'rtmp://example.flash.internapcdn.net/example_vitalstream_com/_definst_'
	}
}