
Android play m3u8 file
I need the jw player can play m3u8 file on Android phone(Android 2.2+),
this is the html file:
bc.. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head><meta charset="utf-8"></head>
<body style='margin:0; pading:0; background-color: #71D5CA;'>
<script src="http://135.240.130.30:8080/LiveVideoServer/js/jwplayer.min.js" type="text/javascript">
console.log("helloo");
</script>
<div id="container">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container").setup({
flashplayer: "http://135.240.130.30:8080/LiveVideoServer/tools/player.swf",
provider: "http://135.240.130.30:8080/LiveVideoServer/tools/AdaptiveProvider.swf",
file: "http://135.240.130.30:8080/LiveVideoServer/streams/3@163.com/1333959178367/68.m3u8",
height: "50%",
width: "100%",
autostart: true,
});
</script>
<br />
<embed
id="player1"
name="player1"
src="http://135.240.130.30:8080/LiveVideoServer/tools/player.swf"
width="100%"
height="50%"
FlashVars="provider=http://135.240.130.30:8080/LiveVideoServer/tools/AdaptiveProvider.swf&file=http://135.240.130.30:8080/LiveVideoServer/streams/7@163.com/1334113364674/143.m3u8&autostart=true"
/>
</body>
</html>
but the problem is that jw player sometimes only play a few seconds and stoped, sometimes can play to the end.
My m3u8 file is like this:
bc.. #EXTM3U
#EXT-X-TARGETDURATION:2
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:2,
1.ts
#EXTINF:2,
2.ts
#EXTINF:2,
3.ts
#EXTINF:2,
4.ts
#EXTINF:2,
5.ts
#EXTINF:2,
6.ts
#EXTINF:2,
7.ts
#EXT-X-ENDLIST;
Thanks for your help.