
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