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

My video only has one quality despite me giving it 7 sources


I am instantiating a jw player, with videos hosted on limelight. my setup call receives these parameters
(note i have hidden the urls with [...] for security)

{
"description": "Video Description",
"title": "Video Title",
"sources": [
{
"file": "rtmp://s2.csl.delvenetworks.com/a4820/l1/mp4:media/[...].mp4",
"bitrate": 322
},
{
"file": "rtmp://s2.csl.delvenetworks.com/a4820/l1/mp4:media/[...].mp4",
"bitrate": 772
},
{
"file": "rtmp://s2.csl.delvenetworks.com/a4820/l1/mp4:media/[...].mp4",
"bitrate": 128
},
{
"file": "rtmp://s2.csl.delvenetworks.com/a4820/l1/mp4:media/[...].mp4",
"bitrate": 1072
},
{
"file": "rtsp://s2.cml.delvenetworks.com/a4820/l1/media/[...].3gp",
"bitrate": 128
},
{
"file": "http://s2.cpl.delvenetworks.com/media/[...].mp4",
"bitrate": 322
},
{
"file": "rtmp://s2.csl.delvenetworks.com/a4820/l1/mp4:media/[...].mp4",
"bitrate": 472
}
],
"image": "http://img.delvenetworks.com/[...].jpeg",
"primary": "flash",
"autostart": true,
"width": 934,
"height": 526,
"ratio": 1.7,
"startparam": "ms",
"displaytitle": false,
"start": 0,
}

When I run getQualityLevels(), I only get one value, truncated after mp4:media. I have read the docs suggesting to use a descriptor file for various sources, but Limelight doesn't provide this in their API at the moment. Hence why I am feeding it various sources.
I need the player to play the highest quality video by default. but unfortunately only plays the lowest quality one and has no other qualities for me to switch to

Any ideas what I am doing wrong?

4 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

The issue here is that your current setup code is actually telling the player that you have backup streams not quality streams. To get different qualities I would suggest using a smil file as suggested here:

http://support.jwplayer.com/customer/portal/articles/1430398-dynamic-rtmp-streaming

integration

User  
0 rated :

thanks, unfortunately, since the content is managed by another CDN (limelight), i don't have access to a smil file
is it possible to format the parameters so it reads it as a smil file?

George

JW Player Support Agent  
0 rated :

Not to my knowledge

kiwinichau

User  
1 rated :

hi there,
Limelight doesn't provide smil file. So, you need create your own custom smil file.

Example Smil file:
<smil>
<head>
<meta base="rtmp://s2.csl.delvenetworks.com/a4820/l1/" />
</head>
<body>
<switch>
<video src="mp4:media/[...].mp4" title="HD" system-bitrate="800000" width="1024" height="576"/>
<video src="mp4:media/[...].mp4" title="SD" system-bitrate="472000" width="480" height="270"/>
<video src="mp4:media/[...].mp4" title="LD" system-bitrate="128000" width="480" height="270"/>
</switch>
</body>
</smil>

This question has received the maximum number of answers.