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

Android HTTP (m3u8) Live Stream


Hi
i just downloaded JW player last night and have simple question because i cant find a good answer any where in this site.
i just need to play my live stream m3u8 format with HTML5 code on my website for android clients. so what code i should use for that?
can u please just give me the right HTML5 code? i will replace it with my live address
also i saw this link:* http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/m3u8.html*
and sorry doesn't help me because i just need a simple HTML5 code

7 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

http://www.longtailvideo.com/support/blog/15827/using-the-jw-embedder-to-embed-your-player

For the file variable, use the m3u8 stream instead of the video file.

JW Player

User  
0 rated :

thanks for rp

first i used this code:
bc.. <html>
<head>
<title>Rangarang Live Stream</title>
<script type='text/javascript' src='jwplayer/jwplayer.js'></script>
</head>
<body>

<div id='mediaplayer'></div>

<script type="text/javascript">
jwplayer('mediaplayer').setup({
'id': 'playerID',
'width': '480',
'height': '270',
'file': 'http://tv.rangarang.us/liverar.isml/manifest(format=m3u8-aapl).m3u8',
'image': 'http://rangarang.us/android/rangarang.png',
'modes': [
{type: 'html5'},
{type: 'flash', src: 'player.swf'},
{type: 'download'}
]
});
</script>
</html>


and then this simple one:
bc.. <html>
<head>
<title>Rangarang Live Stream</title>
<script type='text/javascript' src='jwplayer/jwplayer.js'></script>
</head>
<body>
</script>
<div id="thePlayer"></div>
<script type="text/javascript">
jwplayer("thePlayer").setup({
flashplayer: "player.swf",
file: "http://tv.rangarang.us/liverar.isml/manifest(format=m3u8-aapl).m3u8",
height: "270",
width: "380"
});
</script>
</body>
</html>


but in both of them, android could'n play anything :(
and when i use my direct stream link:
bc.. http://tv.rangarang.us/liverar.isml/manifest(format=m3u8-aapl).m3u8


its work great in android device.
so whats the problem ethan?

Ethan Feldman

JW Player Support Agent  
1 rated :

Can I see a link to where the code is not working?

JW Player

User  
1 rated :

of course.

i replaced "HTTP" with "HTTPLIVE", now its working but audio and video freezing after 2 sec

here is my simple sample without screen picture:

http://rangarang.us/android3/

Ethan Feldman

JW Player Support Agent  
-1 rated :

httplive://tv.rangarang.us/liverar.isml/manifest(format=m3u8-aapl).m3u8 is not a valid url.

You can’t put httplive:// into an address bar.

It has to be – http://tv.rangarang.us/liverar.isml/manifest%28format=m3u8-aapl%29.m3u8

JW Player

User  
1 rated :

i know. i tried both of addresses
first i tried HTTP and didn't worked
android couldn't play anything on player
then i tried HTTPSLIVE because android developers forum said it could be help and i replaced URL, it was worked but video and audio freez in 2 sec

Ethan Feldman

JW Player Support Agent  
0 rated :

HTTPSLIVE makes no sense because that is not a valid URL.

I recommend testing your M3U8 out in this tester – http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/m3u8.html, and also trying out sample.

This question has received the maximum number of answers.