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

JWPlayer does not load rtmp after a 302 Response.


Player code: (Tried on 1.8 , 1.6 JWPlayer versions)

<script type='text/javascript'>
var xplayerParent = document.getElementById('my-video_c');
xplayerParent.innerHTML = '<div id="jwplayer_container_container"><div id="my-video1"> </div></div>';

jwplayer.key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
jwplayer("my-video1").setup({


file: "http://livestreamhandler.farooq.tv/Handler1.ashx?ref=/1.mp4",


width: 640,
height: 360,

});

-------------
HttP 302 Response, when clicked 'Play Icon'.

http://livestreamhandler.farooq.tv/Handler1.ashx?ref=/1.mp4
(Redirecting url: rtmp://willax.mediastream.pe/vv_willax/livestream )

Error:

Error loading media:
File Could not be played.

----------

Issues

1 . JWPlayer deos not load and show play icon, if i don't add " ref=/1.mp4 " at the end of the "file" url.
2. Handler1.ashx just redirected the coming request to "rtmp://willax.mediastream.pe/vv_willax/livestream"), which JWPlayer failed to redirect.
3. Whole scenario works fine if redirect to an http(s) url istead of rtmp.

Please let me know what is missing or what is being done wrong.

Any help would be much appreciated.

Regards,

Mazhar Karimi



6 Community Answers

mazhar.karimi

User  
0 rated :

Correction: JWPlayer version is 6.

Ethan Feldman

JW Player Support Agent  
0 rated :

Set the player’s type variable to rtmp

mazhar.karimi

User  
0 rated :

ok, i did, Now the error is changed to

Error loading stream: Manifest not found or invalid

.......

rtmp url is fine by the way,

fiddler response:



HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Location: rtmp://willax.mediastream.pe/vv_willax/livestream
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
DNT: 0
Date: Thu, 29 May 2014 13:11:22 GMT
Content-Length: 176

<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="rtmp%3a%2f%2fwillax.mediastream.pe%2fvv_willax%2flivestream">here</a>.</h2>
</body></html>

Ethan Feldman

JW Player Support Agent  
0 rated :

Can I have the direct rtmp stream url?

mazhar.karimi

User  
0 rated :

yeah sure. its..

rtmp://willax.mediastream.pe/vv_willax/livestream

Ethan Feldman

JW Player Support Agent  
0 rated :

This works fine.

This question has received the maximum number of answers.