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

Adaptive RTMP Streaming


hi,

I'm trying to set up to use RTMP adaptive streaing with JWPlayer and our video streaming server.

we have Helix and Wowza server both at the moment, the Wowza server works great with JWplayer.
however it always fails when I try to use JWplayer to play smil file for Helix server, the error I got is manifest is not valid or found.

I put smil file under IIS sever with web application. I can put it together with video files on server but no luck either.

the file is like:

<smil>
<head>
<meta base="rtmp://helixserver/Videos/ABS/" />
</head>
<body>
<switch>
<video src="mp4:Test_320x240.mp4" system-bitrate="528000"/>
<video src="mp4:Test_640x480.mp4" system-bitrate="928000"/>
<video src="mp4:Test_640x480.mp4" system-bitrate="1500000"/>
</switch>
</body>
</smil>


and the jwplayer like:

jwplayer("player").setup({
sources:
file: "/abs/testhelix.smil",
width:"600px",
androidhls:true,
fallback: false
});

it didn't work. can you help?

thanks
Tommy

13 Community Answers

Andrew

Best Answer  JW Player Support Agent  

The issue appears to be:

1) You’re disabling fallback, which is making the player render in HTML5 mode and thus ignoring the SMIL.
2) You’re then attempting to play an HLS stream, which is using a 302 redirect with an MP4 file extension.
3) The player still assumes that it can play the file in HTML5 mode, since it’s seeing the MP4 extension and assuming that it’s an MP4.
4) It can’t!
5) Error message

The best solution would be:
1) Set primary: ‘flash’ within your player embed. You’d need this for either HLS or RTMP regardless.
2) use type: ‘hls’ or type: ‘m3u8’ below your 302 redirect file. The player will then play this file as an HLS stream.

However, please be aware that 302 redirects are not playable unless absolute paths are specified for chunklists and TS segments. Loading a Manifest from ABC.com, redirecting to DEF.com will still cause the player to look for relative chunklists on ABC.com.

I hope this helps!

View in conversation

Cooper Reid

JW Player Support Agent  
1 rated :

Tommy -

It’s not clear to me exactly what the problem is. Can you send me a link so I can troubleshoot more effectively? Also, you can remove the androidhls parameter, as this is rtmp, not hls.

Regards,
Cooper

tommy.yu

User  
1 rated :

Cooper,
thanks for the reply. we are testing internally but I opened it for you to take a look.

the link is at http://media.weatherford.com/videotest/abstest.aspx

the streaming server is installed on same box , can you please take a look and tell me what is wrong with my setting?

Thanks
Tommy

Cooper Reid

JW Player Support Agent  
0 rated :

Tommy -

It appears that neither of your video files are accessible.

jwplayer(“player”).setup({
sources: [{
file: “/abs/test.smil” <= not a valid source }, { file: "http://10.7.100.85:1935/mediacache/_definst_/smil:path1/Mobile/ABS/test.smil/playlist.m3u8" <= not valid
}],
width: “600px”,
androidhls: true,
fallback: false
});

Kind Regards,
Cooper
Client Support Engineer, JWPlayer

tommy.yu

User  
0 rated :

Cooper,
thanks for quick replay. I add smil mime type to IIS server now you can see it at http://media.weatherford.com/videotest/abs/testhelix.smil
the HLS one is not accssible for now.

thanks

Cooper Reid

JW Player Support Agent  
0 rated :

Your smil URL in your setup is not pointing to the SMIL correctly. If you use the full url ‘http://media.weatherford.com/videotest/abs/testhelix.smil’, you’ll see that your player will work as expected.
-Cooper

tommy.yu

User  
0 rated :

Cooper, you rock, thanks very much, point to full url works.

Tommy

tommy.yu

User  
0 rated :

Another question Cooper, I can browse and play video in chrome and firefox, but when I open http://media.weatherford.com/videotest/abstest.aspx in IE, the jwplayer does not show up, any idea?thanks
Tommy

Cooper Reid

JW Player Support Agent  
0 rated :

Tommy -

Which version of IE are you using? Can you please ensure you have an up-to-date version of Flash installed in IE?

Best Regards,
Cooper

tommy.yu

User  
0 rated :

Cooper,

I tried another rtmp source (using jwplayer sample source) on my site, http://media.weatherford.com/videotest/helixstreaming.aspx

it works for chrome/ff and IE9, but in IE 11 it says no playable source found, can you take a look and help?

thanks
Tommy

Andrew

JW Player Support Agent  
1 rated :

Hmm.. Your MP4 file appears to be redirecting to an M3U8 manifest via 302 redirect. So there are two things you should do here.

Hmm.. Your MP4 file appears to be redirecting to an M3U8 manifest via 302 redirect. So there are two things you should do here.1) Set the type to hls or m3u8 for this file. Currently, the player is trying to load this as an MP4, which isn’t triggering the Flash player. Instead we’re trying to play this via HTML5. (Which will not work on desktops)

Hmm.. Your MP4 file appears to be redirecting to an M3U8 manifest via 302 redirect. So there are two things you should do here.1) Set the type to hls or m3u8 for this file. Currently, the player is trying to load this as an MP4, which isn’t triggering the Flash player. Instead we’re trying to play this via HTML5. (Which will not work on desktops)2) Set primary: ‘flash’ within your player embed. This will force the player to load in Flash mode initially, and we’ll be able to play this as well.

tommy.yu

User  
0 rated :

Thank you Andrew, I installed newest flash player on IE did the trick.
another question, Cooper once helped me to set the RTMP adaptive streaming using smil file, but then it stopped working. can you or Cooper take a look:

http://media.weatherford.com/videotest/abstest.aspx

it references the following smil file

http://media.weatherford.com/videotest/abs/testhelix.smil

but JWplayer always says file couldn't be played or invaild.
please help.

Tommy

Andrew

Best Answer  JW Player Support Agent  
1 rated :

The issue appears to be:

1) You’re disabling fallback, which is making the player render in HTML5 mode and thus ignoring the SMIL.
2) You’re then attempting to play an HLS stream, which is using a 302 redirect with an MP4 file extension.
3) The player still assumes that it can play the file in HTML5 mode, since it’s seeing the MP4 extension and assuming that it’s an MP4.
4) It can’t!
5) Error message

The best solution would be:
1) Set primary: ‘flash’ within your player embed. You’d need this for either HLS or RTMP regardless.
2) use type: ‘hls’ or type: ‘m3u8’ below your 302 redirect file. The player will then play this file as an HLS stream.

However, please be aware that 302 redirects are not playable unless absolute paths are specified for chunklists and TS segments. Loading a Manifest from ABC.com, redirecting to DEF.com will still cause the player to look for relative chunklists on ABC.com.

I hope this helps!

tommy.yu

User  
0 rated :

Andrew,

thank you so much, it works exactly as what you pointed out.
noticed one thing, for adaptive HLS streaming, seems only Wowza engine and JWplayer seamlessly support it, other streaming server can not do it, or I haven't done it right .

Thanks
Tommy

This question has received the maximum number of answers.