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

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.

14 Community Answers

JW Player

User  
0 rated :

I forget to say,
the html works fine in chrome, jw player can play to the end.
but on Android, it does not work fine.

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link? And also, I think m3u8 is only supported by Android in 2.3+

JW Player

User  
0 rated :

My HTC phone is Android 2.3.
I think m3u8 is supported by jw player, not android.
The question is sometimes the jw player can play to end, sometimes jw player just play a few seconds, and the status shows it is playing, but the video freezes.

BTW, I will give you a link quickly.

JW Player

User  
0 rated :

This is the link:

http://yc03101.5gbfree.com/t1.html
http://yc03101.5gbfree.com/t2.html
http://yc03101.5gbfree.com/t3.html
http://yc03101.5gbfree.com/t4.html

Thank you for your help.

JW Player

User  
0 rated :

http://yc03101.5gbfree.com/t3.html

This page use two modes, html5 and flash
but, it does not work.
I don't know why.

Ethan Feldman

JW Player Support Agent  
0 rated :

The adaptive provider is in beta and won’t work in Flash mode with m3u8 I believe. Can you not use that?

You can test your streams out here in HTML5 mode – http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/m3u8.html

JW Player

User  
0 rated :

I can not use html5 mode.
Other pages:
http://yc03101.5gbfree.com/t2.html
http://yc03101.5gbfree.com/t4.html
do not work on my htc phone(Android 2.3), but they work fine in chrome on PC.
They does not play to end on htc phone.

http://yc03101.5gbfree.com/t1.html
this page show error RangeError #2006.
may be this page's ts files has problem?

If
http://yc03101.5gbfree.com/t2.html
http://yc03101.5gbfree.com/t4.html
can work fine on my phone. I will be appreciated.
Thanks for your help.

Ethan Feldman

JW Player Support Agent  
0 rated :

Does this page work on your phone?

Go to this page – http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/m3u8.html

Press the update button.

Then press play.

JW Player

User  
0 rated :

No, this page does not work on my phone, even on PC's chrome brower.

on PC's chrome,
http://yc03101.5gbfree.com/tsfile2/index.m3u8
when i press the update button, Then press play, the download page will appear.(download the s1.m3u8 file).

http://yc03101.5gbfree.com/t2.html
http://yc03101.5gbfree.com/t4.html
can you test the two pages, they do not work fine on my phone. I do no care the html5 mode. If the flash mode can work, I will not try the html5 mode.

Thanks for you help!

Ethan Feldman

JW Player Support Agent  
0 rated :

Again, Chrome can’t handle that file…

This only works on iOS, and Safari (latest version), on OSX only.

And m3u8 for Android support is flaky and only works on 2.3+ in most cases…

JW Player

User  
0 rated :

What do you mean "m3u8 for Android support is flaky and only works on 2.3+ in most cases"?
sometimes works fine, sometimes not. Am I right?

I need "jwplayer"+"adaptiveProvider" to play m3u8 file an android 2.2+,
can your team specialized made the product according to our request.
If possible, how much money should we pay?

Ethan Feldman

JW Player Support Agent  
0 rated :

Yes, you are right.

We can’t make specialized plugins, we don’t do paid work, sorry.

JW Player

User  
0 rated :

Thank you very much.
You help me a lot.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

This question has received the maximum number of answers.