
Problem with playing live stream on android devices
Hello Team,
I’m using Jwplayer v6.8 and broadcasting the live via Adobe Flash Media Live Encoder (AFMLE) using the following configurations,
Video
Format – H.264
Profile – Baseline
Level – 2.0
Keyframe frequency – 2 seconds
Frame rate – 15 fps
Input size – 320x240
Bit Rate – 200 Kbps
Audio
Format – AAC
Channels – Stereo
Sample rate – 44100 Hz
Bit Rate – 64 Kbps
When I am trying to play flash RTMP for desktop and HLS for iOS devices, the live stream is well. But, I had frustrating experiences with android live stream playback and jwplayer seems to be “No playable source found” error. I have used RTSP for android devices.
My jwplayer setup source code is,
<html>
<head >
<title>Live Test</title>
<script src="Includes/JavaScript/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="Includes/JavaScript/jwplayer6/jwplayer.js" type="text/javascript"></script>
<script type="text/javascript”> jwplayer.key="[jwplayer-key]";</script>
</head>
<body>
<div id="flashbanner"></div>
</body>
<script type="text/javascript">
var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1;
jwplayer("flashbanner").setup({
playlist: [{
sources: [
(isAndroid)?{file:'rtsp://streamnow1.mpl.miisolutions.net/streamnow1-live-1/_definst_/mp4:livetest'}:{file:'rtmp://streamnow1.mpl.miisolutions.net/streamnow1-live-1/_definst_/mp4: livetest'},
{file:'http://streamnow1.mpl.miisolutions.net/streamnow1-live-1/_definst_/mp4: livetest/playlist.m3u8'}
]
}]
});
</script></html>
Here, “livetest” is my live stream name.
This issue was happening only for the live and not for VOD. VOD streaming is well on desktop, ios and android devices as well.
If I’m wrong with the jwplayer setup, can you please assist me?