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

Video does not play on chrome and native browser installed on Android device


We have been working on a video streaming project, the video work fine on chrome but does not seems to work on any other browser. As far as the mobile devices are concerned the video seems to work fine on Iphone safari, but doesn't seem to work on android devices.

if(streamerType == "rtmp") {
jwplayer(elementID).setup({
primary: 'flash',

// LIVE
streamer: ''+streamerType+'://www.example.com:1935/videos/_definst_?' + file: data.episodeURL,

width: 700,
height: 400,
autostart: true
});
}else if(streamerType == "rtsp") {

jwplayer(elementID).setup({
file: 'rtsp://www.example.com:1935/videos/sample.mp4',

width: 700,
height: 400,
autostart: true,
androidhls: true,
fallback: false,
});
}else if(streamerType == "http") {
jwplayer(elementID).setup({
file: 'http://www.example.com:1935/videos/_definst_/mp4:'+data.episodeURL+'/playlist.m3u8',
// image: "/assets/myVideo.jpg",
width: 700,
height: 400,
autostart: true
});
}

Can anyone guide what are we doing wrong?

2 Community Answers

mark

User  
0 rated :

On an iOS or Android. the rtmp will not work, nor will the rtsp work ( rtsp is pointless and not compatible with JW Player). The only thing that will work is the http method of your hls.
I am surprised it worked on iOS actually.
The problem I see is that you have set the port number at 1935 for the http stream, this is usually reserved for rtmp and you should be using port 80 I think

If this is not the problem it may just be that your Android phones don't support HLS - or - if you aren't using the latest cloud player version then you may need to add
androidhls: 'true', to your script

mark

User  
0 rated :

>>> androidhls is missing from the hls properties

This question has received the maximum number of answers.