This is a message.

AKAMAI live stream Created Jul 17, 2009

This thread is solved

Views: 8449     Replies: 16     Last reply Jan 12, 2012  
You must login first before you can use this feature

herbutant

Posts: 3

Registered:
Jul 17, 2009

AKAMAI live stream

Posted: Jul 17, 2009

hi,
I'm trying to set up Flowplay to show a live stream from AKAMAI
(for which I actually get a SMIL).

currently I have this config to play the stream that I manually extracted from the SMIL


flowplayer("player", "flowplayer-3.1.2-dev2.swf", {
 clip: { 
  url: 'rtmp://cpXXXXX.live.edgefcs.net/live/XXX@sXXXX', 
  connectionProvider: 'akamai', 
  provider: 'rtmp',
  live: true }, 
 plugins: { 
  akamai: { url: 'flowplayer.akamai-3.1.1-dev.swf' },
  smil: { url: 'flowplayer.smil-3.1.0-dev.swf' },
  rtmp: { url: 'flowplayer.rtmp-3.1.0.swf' } },
 debug : true,
 log : { level  : 'debug' }			
} );

player stays empty :-( What do I need to do?

Kenny

Posts: 25

Registered:
Aug 3, 2009

» AKAMAI live stream

Posted: Aug 13, 2009

Reply to: AKAMAI live stream, from herbutant
I need to get flowplayer working with Akamai live streaming too. Has anyone figured out how to do this yet?

arkepitz

Posts: 6

Registered:
Aug 24, 2009

a bit desperate about Akamai now...

Posted: Aug 24, 2009

Reply to: AKAMAI live stream, from herbutant
Hi from Spain.

If you got a solution to get Akamai stream working on flowplayer, would you share it with us?

Anssi
Flowplayer Flash & video streaming developer

Posts: 1197

Registered:
Jul 24, 2007

» a bit desperate about Akamai now...

Posted: Aug 24, 2009

Reply to: a bit desperate about Akamai now..., from arkepitz
The development version of the Akamai plugin has been improved now. It's not available yet, but can be found in the current development version. Do you have a SMIL file or a test stream so that I could set up an example?

Anssi

arkepitz

Posts: 6

Registered:
Aug 24, 2009

test stream

Posted: Aug 24, 2009

Reply to: » a bit desperate about Akamai now..., from Anssi
Hi there!

Akamai provides me with the following info:

CONNECT rtmp://cp80623.live.edgefcs.net/live/
PLAY esRadio-Directo@13570

I'm right now streaming rubbish so you can test it thoroughly :)

Anssi
Flowplayer Flash & video streaming developer

Posts: 1197

Registered:
Jul 24, 2007

» test stream

Posted: Aug 24, 2009

Reply to: test stream, from arkepitz
Here's an example. Works with the current version and the trick was to have the subscribe: true option in the RTMP plugin.

Flowplayer forum example

HTML setup for the player

<!-- include latest Flowplayer javascript file -->
<script language="javascript" src="path/to/flowplayer-3.2.8.js"></script>

<!-- player container with optional splash image -->
<a href="path/to/video_file" id="playerContainer">
	<img src="path/to/splash_image" />
</a>


JavaScript coding

Following script will install Flowplayer into our player container


<script language="javascript">
// our custom configuration is given in third argument
flowplayer("playerContainer", "path/tohttp://releases.flowplayer.org/swf/flowplayer-3.2.11.swf",{
clip: {
  netConnectionUrl: 'rtmp://cp80623.live.edgefcs.net/live',
  url: 'esRadio-Directo@13570',
  live: true,
  provider: 'rtmp'
},
plugins: {
  rtmp: {
     url: 'flowplayer.rtmp.swf',
     subscribe: true
  }
}
});
</script>


arkepitz

Posts: 6

Registered:
Aug 24, 2009

yeaaaah!

Posted: Aug 24, 2009

Reply to: » test stream, from Anssi
It works jus SMOOTH. Thank you so MUCH!!!!!

mcaporali

Posts: 4

Registered:
Aug 12, 2009

» » test stream

Posted: Aug 25, 2009

Reply to: » test stream, from Anssi
This too works wonderfully for me streaming live from Akamai!

Kenny

Posts: 25

Registered:
Aug 3, 2009

» » test stream

Posted: Aug 28, 2009

Reply to: » test stream, from Anssi
Anssi,

This is still not working for me.

I spent an hour on the phone with Akamai, and they told me that there is an authorization string that must be passed with the url. They gave me instructions on how to form the string, but when I do it, the player breaks. There is no debug info, and the controls are not present.

Here is what I had at first, according to your instructions:

clip:{
netConnectionUrl: 'rtmp://xxxxxx.live.edgefcs.net/live',
url: 'yyy@zzzzzz',
live: true,
provider: 'rtmp'
},

They say that it must be like this:

clip:{
netConnectionUrl: 'rtmp://xxxxxxx.live.edgefcs.net/live/yyy@zzzzz?auth=daEb3d.b1a_d.bdaQaCbKcaamanbgc0aJaC-bkL9DB-eS-GFComvuzrzDxqrCo&aifp=0001',
url: 'yyy@zzzzzz',
live: true,
provider: 'rtmp'
},

When I do this, the player breaks.

If I remove the last part: "&aifp=0001" , it doesn't break, but still does not stream.

Although it is possible to get Akamai to turn off the need for the auth parameter, we cannot do this, because we would run the risk of others pulling our streams, and costing us huge amounts of money due to the extra bandwidth.

So, we must have this authorization string in place in order to access our live streams.

Can you modify the player to be able to accept this information?

If you need actual working data, let me know, and I can email you the link to our xml files, so you can pull the auth token out in real-time. The auth token is only good for 5 minutes.

Kenny

Andre Reiter

Posts: 19

Registered:
Feb 13, 2009

» » » test stream

Posted: Aug 28, 2009

Reply to: » » test stream, from kray257
subscribe: true ???

Kenny

Posts: 25

Registered:
Aug 3, 2009

» » » » test stream

Posted: Aug 31, 2009

Reply to: » » » test stream, from andiger
It is set to true in the rtmp plugin:

plugins: {

rtmp: {
url: '/flash/flowplayer.rtmp-3.1.1.swf',
subscribe: true
}

}

Anssi
Flowplayer Flash & video streaming developer

Posts: 1197

Registered:
Jul 24, 2007

» » » » » test stream

Posted: Sep 1, 2009

Reply to: » » » » test stream, from kray257
Try escaping the netConnectionUrl like this:


netConnectionUrl: escape('rtmp://xxxxxxx.live.edgefcs.net/live/yyy@zzzzz?auth=daEb3d.b1a_d.bdaQaCbKcaamanbgc0aJaC-bkL9DB-eS-GFComvuzrzDxqrCo&aifp=0001'),
...

At one point I was testing with a Akamai specific SMIL file that encapsulates the stream name and the netConnectionUrl, plus the auth parameter that is used in the netConnectionUrl. Do you have this option available?

The latest dev version of the Akamai plugin supports this kind of SMIL files. You just specify the SMIL file url as the clip URL and include the SMIL and Akamai plugins in the mix (rtmp plugin is the clip's provider and the Akamai plugin as the urlResolver).

Anssi

iq-9

Posts: 2

Registered:
Jan 6, 2010

» AKAMAI live stream

Posted: Jan 7, 2010

Reply to: AKAMAI live stream, from herbutant
No luck on this either. Our rtmp Flash streams at Akamai fail. "Stream not found" errors. Found another post with similar problem, but none of what they mention fixes my issue:

http://flowplayer.org/forum/2/30135

I verified that the streams were valid and playable using other methods, like JW Player's Setup Wizard and VLC.

I successfully played some other rtmp streams hosted at other providers, even Flowplayer's test stream.

Here is my code, which matches identically with what is shown in that other post above:


 $f('fms', 'flowplayer.swf', { 
  // Akamai Live Streams
  clip: { 
    netConnectionUrl: 'rtmp://cp76336.live.edgefcs.net/live', 
    url: 'Demo1@11908', 
    live: true, 
    provider: 'rtmp' 
  }, 
  plugins: { 
    rtmp: {
       url: 'flowplayer.rtmp.swf',
       subscribe: true
    } 
  }
});

smarten

Posts: 1

Registered:
Feb 8, 2011

» » AKAMAI live stream

Posted: Feb 8, 2011

Reply to: » AKAMAI live stream, from iq-9
Noy sure if you've solved this, but the netConnectionUrl goes into the rtmp section.
$f('fms', 'flowplayer.swf', { 
  // Akamai Live Streams
  clip: { 
    url: 'Demo1@11908', 
    live: true, 
    provider: 'rtmp' 
  }, 
  plugins: { 
    rtmp: {
       netConnectionUrl: 'rtmp://cp76336.live.edgefcs.net/live',
       url: 'flowplayer.rtmp.swf',
       subscribe: true
    } 
  }
});