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

JWPlayer 7 not streaming on Android 4.2.2 mobile device


Hi,

I am testing with an Android device, 4.4.2. I have the new JWPlayer 7 in place. In the past, I used JWPlayer 6 and it did work (Sept 2014 – Dec 2014). However, I did notice right before I upgraded to JWPlayer 7, the player was not working on the Android device. I’m not sure how long it has been down. Possibly anytime between January 2015 and now. In the past I had this in my code for JWPlayer 6:

<html>
<head>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
<script type="text/javascript" src="/jwplayer/jwplayer.html5.js"></script>
<script type="text/javascript" src="/jwplayer/jwplayer.flash.swf"></script>
<script type="text/javascript">jwplayer.key = "FsOfElJ5hxPNpctPWB3y6sWWLprKU1tvsZMWpLLM3zg=";</script>
</head>
<body>
<div id="myElement">Loading the player...
<a href="rtsp://stream.lagrange-ga.org:1935/LGTV/myStream_aac">Play this on Android </a>
</div>

<script type="text/javascript">
jwplayer("myElement").setup({
sources: [{
file: "rtsp://stream.lagrange-ga.org:1935/LGTV/myStream"
}, {
file: "http://stream.lagrange-ga.org:1935/LGTV/myStream/playlist.m3u8"
}],
rtmp: {
bufferlength: 3
},
fallback: false,
image: "/uploads/myPoster.jpg"
});
</script>
</body>
</html>

This would play on Android and Apple mobile devices as well as all desktops/browsers. I now have JWPlayer 7 in place and it is coded as the following:

<html>
<head>
<script type="text/javascript" src="../jwplayer/jwplayer.js"></script>
<script type="text/javascript">jwplayer.key = "1xRCGANukOBqdxSgkFt0OuY5EJP35tWfaez1xzlfMBA=";</script>
</head>
<body>
<div id="myElement">Loading the player...</div>
<script type="text/javascript">
var playerInstance = jwplayer("myElement");
playerInstance.setup({
file: "http://stream.lagrange-ga.org:1935/LGTV/myStream/playlist.m3u8",
width: 480,
height: 270,
androidhls: true,
skin: {
name: "vapor"
},
sharing: {

}
});
</script>
</body>
</html>

This plays on Apple mobile devices as well as all desktops/browsers. It does not play on Android. I have the androidhls set to true. Am I missing something else? Also, I have the jwplayer folder which includes the jwplayer.js, etc. within the site directory. Thank you so much in advance for your help.


Thanks,

Nicky Nix

2 Community Answers

Andrew

JW Player Support Agent  
0 rated :

Hi Nicky,

Do you happen to have a page where your above code is being implemented? This will help us troubleshoot things a bit further.

Regards,
Andrew

jason

User  
0 rated :

Hi, We are having exactly the same problem here. we do not seem to be able to stream to 4.2.2 devices. I can share a link if needed.

This question has received the maximum number of answers.