Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

JW Player 6 and akamai hds livestream - how to setup 'provider' and 'type' in playlists?


dear JW Support Team,

we want to use jw player 6 with akamai livestream. we got it work for *a single video* with the following code:

bc.. jwplayer("jwplayer6").setup({
playlist: [{
file: 'http://my-videospace.akamaihd.net/my-akamaistream/manifest.f4m',
provider: 'AkamaiAdvancedJWStreamProvider.swf',
type: 'mp4'
}],
width:768,
height:432,
primary: "flash"
});



My question: how can we include the "provider" and the "type" variable into a playlists xml file for jw player 6.x?

Obviously you support both *provider* and *type*.

But because you reduced the playlist formats to mrss only, we have a problem. as far as we know, there ist no possibility to create "custom tags" in mrss and there are no defined tags like:

bc.. <media:content provider="AkamaiAdvancedJWStreamProvider.swf type="mp4" />



What is your advice?

regards
Jaco

24 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

You can just use those per each playlist item. If you look at your setup, you are actually using a playlist, but it is just a single entry.

JW Player

User  
0 rated :

Hey Ethan - I am trying to create a video player with the akamai plugin where a video has multiple qualities set in the "sources" section of the playlist. I have this:

bc.. jwplayer('video_container').setup({

playlist: [{
image: "images/videos/test_large_" + videoBaseName + ".jpg",
sources: [
{ file: "30_low.mp4", label: "Low", provider: "js/jwplayer/AkamaiAdvancedJWStreamProvider.swf" },
{ file: "30_mid.mp4", label: "Mid", provider: "js/jwplayer/AkamaiAdvancedJWStreamProvider.swf" },
{ file: "30_high.mp4", label: "High", provider: "js/jwplayer/AkamaiAdvancedJWStreamProvider.swf" }
],
title: videoTitle
}],
... remaining set up code here...



Which does not work.

The only way I can get the plugin to work is like this:
bc.. jwplayer('video_container').setup({
playlist: [{
image: "images/videos/test_large_30.jpg",
file: "30_high.mp4",
provider: "js/jwplayer/AkamaiAdvancedJWStreamProvider.swf",
title: "Video Title"
}],
primary: "flash",



How on earth can I set the akamai plugin to work for multiple qualities for an item??? I have googled I don't know how many different terms and gotten nothing.

Thanks
B

Ethan Feldman

JW Player Support Agent  
-1 rated :

Can I see where you are running this?

JW Player

User  
-1 rated :

Ethan,

thank you for your answer. I agree for an inline playlist. But what about the *external* xml/mrss-playlist-file i asked for?

Can you provide an example? As i told you, we did not find an equivalent for provider nor type as an mrss tag.

Even inside a bc.. <media:content ... / >
provider and type are not defined(?).

We need to use external xml-playlists cause we dynamically generate them very often, while the hosting page remains more or less static - as we successfully did with your great 5.x player.

regards
jaco

JW Player

User  
-1 rated :

This is currently running here: http://staging.wolowicz.com/Istation, but I rolled it back into the normal CDN progressive view mode, not the streaming version. I can upload that variation later.

Ethan Feldman

JW Player Support Agent  
-1 rated :

@Jaco – We only have a RSS example here – http://www.longtailvideo.com/support/jw-player/29253/basic-rss-feed

@BrianW – Your ink works fine?

JW Player

User  
-1 rated :

Ethan - the code was rolled back to use the progressive CDN and not the streaming server. The code I posted in my first comment shows the streaming implementation that is not working. I need to know how to have multiple quality streams for a single video using the Akamai plugin. Also, why does the "provider" not work for multiple sources in a playlist?

I tried using an SMIL file but it also did not work. The only way I could get Akamai to work with jwplayer is by targeting only a single video, not an SMIL file or a playlist with multiple sources. This is a big problem for us. There is very little to no documentation on how to implement this.

Ethan Feldman

JW Player Support Agent  
-1 rated :

Can you please show me an example of where you tried it and it does not work?

JW Player

User  
-1 rated :

I don't have that code online at the moment, but it is listed above. The video never loads.

JW Player

User  
-1 rated :

Ethan - I have uploaded a new version on my site (http://staging.wolowicz.com/Istation) that contains all 3 examples, a CDN, a single file streaming and the .smil file streaming. The .smil file is the one that is completely failing. The functionality of each is marked above the link on the page.

I have the playlist info being output to the console, I don't know if that will help you at all.

Each video on the SMIL version of the videos links to a .smil file like this:
bc.. <smil>
<head>
<meta base="http://e2152e7120a5413e8258-8c876942721048f33fd611e38a82d154.r68.stream.cf1.rackcdn.com/"/>
</head>
<body>
<switch>
<video src="30_high.mp4" system-bitrate="1800000" width="1280" height="720" />
<video src="30_mid.mp4" system-bitrate="1000000" width="1280" height="720" />
<video src="30_low.mp4" system-bitrate="400000" width="1280" height="720" />
</switch>
</body>
</smil>



The setup code for the player looks like this. Each video name is passed in like "30", "45", etc.
bc.. jwplayer('video_container').setup({

playlist: [{
mediaid: videoID,
image: "images/videos/test_large_" + videoBaseName + ".jpg",
file: "smil/" + videoBaseName + ".smil",
provider: "js/jwplayer/AkamaiAdvancedJWStreamProvider.swf",
title: videoTitle
}],
primary: videoPrimary,

width: 896,
height: 504,

events: { ... event functions here ...}
});



Clicking on a second video in the playlist runs this:
<code>

jwplayer().load(
[{
mediaid: videoID,
image: "images/videos/test_large_" + videoBaseName + ".jpg",
file: "smil/" + videoBaseName + ".smil",
provider: "js/jwplayer/AkamaiAdvancedJWStreamProvider.swf",
title: videoTitle
}]
);
<./code>

JW Player

User  
-1 rated :

@BrianW
why did you hijack this thread? the more so as nobody will search your issues under this headline - and it makes reading not quite easy.

@Ethan
i would be glad, if you could reassure with your developing colleagues, weather it is really not possible to include type and provider in an external mrss playlist file.

if this is the case, jw-player will not be suitable for a lot of professional dynamic hds solutions.

but as i know your company, there will be a solution.

regards
Jaco

JW Player

User  
0 rated :

@jaco - My apologies, I did not intend to hijack it. To me it seems like it is the same issue of trying to get the provider/multiple streams working and that if your issue was solved here, mine might be as well.

Ethan Feldman

JW Player Support Agent  
0 rated :

Hey guys – I am going to ask here about both of these.

JW Player

User  
0 rated :

@Ethan - Thank you! I am very interested in @BrianW's question as well.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np I will let you know what I find here after syncing up internally.

JeroenW

JW Player Support Agent  
0 rated :

We’re talking with Akamai to find ways in which their provider can work with multiple sources and/or RSS playlists. There’s coordinated work that needs to be done on both sides…

JW Player

User  
0 rated :

@Jeroen - does that mean that at this time there is no way to have multiple quality streams of the same video via akamai using their SWF provider and jwplayer 6? One is limited to a single file only?

Can one use jwplayer5 and akamai's provider to support multiple qualities (sources)?

JW Player

User  
0 rated :

thank you Jeroen and Ethan,

i knew you would find a solution. let us know when there are news about this topic.

and thank you Brian; beneath my critics (and more important than this) you made a good point and i have learnt something new.

regards
Jaco

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

JeroenW

JW Player Support Agent  
0 rated :

@BrianW both JW5 and JW6 support adaptive bitrate for Akamai. However, the “HD” menu in JW6 is not yet supported with Akamai. We’re working with them on that.

JW Player

User  
0 rated :

I'm very interested in this as well.

We can get it working with JW5, but when I try to add multiple sources to a playlist item in JW6 I can't get Akamai HDS working. For streaming, we would always include an HDS manifest for Flash devices and HLS stream source for iOS.

Hopefully you guys can get this worked out with Akamai. Thanks!

Ethan Feldman

JW Player Support Agent  
0 rated :

Np.

JW Player

User  
0 rated :

Yes. We are very interested in this as well. New to JW. Using version 6. Stream through Akamai multibitrate. Want best possible integration. Thanks.

Ethan Feldman

JW Player Support Agent  
0 rated :

They are working on updating their provider – http://mediapm.edgesuite.net/jw/

This question has received the maximum number of answers.