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

Adaptive Bitrate Streaming on Edgecast CDN


Can't make adaptive bitrate streaming work using the Pro version of JWPlayer 6.8 streaming through the Edgecast CDN.

The player code:

<div id="player"></div>
<script>
jwplayer("player").setup({
"file":"https://videos.cdn.mozilla.net/serv/air_mozilla/players/smil/AirMoMTV.smil",
"autostart":"true",
"image":"https://videos.cdn.mozilla.net/serv/air_mozilla/PleaseStandBy620.png",
"width":"620",
"height":"350" });
</script>

The SMIL file (account number obscured):

<smil>
<head>
<meta base="rtmp://fml.####.edgecastcdn.net/20####/" />
</head>
<body>
<switch>
<video src="AirMoMTV-HD" height="720" system-bitrate="2073600" width="1280" />
<video src="AirMoMTV-SD" height="360" system-bitrate="803840" width="640" />
<video src="AirMoMTV-LD" height="240" system-bitrate="424960" width="426" />
</switch>
</body>
</smil>


The individual feeds work:

https://air.allizom.org/mtv-commons-public-hd-test/
https://air.allizom.org/mtv-commons-public-sd-test/
https://air.allizom.org/mtv-commons-public-ld-test/

...but the adaptive bitrate doesn't:

https://air.allizom.org/mtv-commons-public-adaptive-bitrate-test/

The SMIL file is clearly being read because the HD button menu shows the correct three screen size choices.

...but the stream never starts.

3 Community Answers

Ethan Feldman

Best Answer  JW Player Support Agent  

Weird, the individual streams seem to fail in our wizard.

I would remove these lines:

“provider”:“rtmp”,
“rtmp.subscribe”:“true”,

These are for JW5.

And use this -

rtmp: {
subscribe: true
},

View in conversation

Ethan Feldman

Best Answer  JW Player Support Agent  
0 rated :

Weird, the individual streams seem to fail in our wizard.

I would remove these lines:

“provider”:“rtmp”,
“rtmp.subscribe”:“true”,

These are for JW5.

And use this -

rtmp: {
subscribe: true
},

richard

User  
0 rated :

Thanks Ethan!

That nailed it. I had missed the switch to the "quoteless" JSON notation in the transition from 5 to 6. We've been doing it wrong for quite a while now.

Note that the Configuration Options Reference on your website still shows the old format though.

Is there something about Wirecast and/or Edgecast that requires the rtmp subscribe? I can't make it work without that, and I think that may be what's tripping up your wizard.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np!

Some live streams simply require the subscribe attribute, I don’t believe that Wirecast / EdgeCast explicitly require this though.

This question has received the maximum number of answers.