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?
↧