Wowza Community

HLS Streaming (m3u8) to Android (Browser)

Hello,

I am currently trying to successfully stream HLS to Android devices. I want the video to be played within a browser on an 4.3+ Android device.

So far I was out of luck trying to get our video files (.m3u8) to run and came here for help since we use Wowza to stream our videos.

Any suggestions and help is greatly appreciated.

It is possible that this device will support HTML 5

The HTML5 video tag can be directly embedded in an HTML page for delivery with code that like this:

<html>
<head> 
 <title>HTML 5 Test</title> 
</head> 
<body> 
<video width="100%" height="100%" controls="controls" src="http://[wowza-ip-address]:1935/live/myStream/playlist.m3u8">
</video> 
</body> 
</html>

Salvadore

In your attempts have you had any errors or log statements associated with your playback? Any errors? Have you tried rtsp?

Hi,

You need to provide a link (href) containing the playback URL on a web page or embed the same on a web page using the video tag.

Daren

Hi,

It looks like your stream is H.264 main profile. My 4.2.2 Android tab was able to play it, but some other devices probably can’t.

Try encoding with H.264 baseline profile instead, as suggested by thekendog.

Daren

I have a m3u8 file, and it works on ios device, but i have no ideal how to play it on Android (Browser), can you give me some strategy. ithinks

I had a problem like this as well. My streams worked on iOS but I got a “Can’t play video” error on Android. Turns out they were using high profile H264 and needed to be baseline. Check out this page maybe it’ll help.

http://developer.android.com/guide/appendix/media-formats.html

Thank you for the responses.

I tried your method salvadore, and now the page shows me the standard Android video “frame” (previously it showed nothing but a blank black rectangle). But I am still not able to start the video.

Any suggestions?

Edit: It works! It was a simple typo in the url to the video. Thanks a lot!

I have a m3u8 file, and it works on ios device, but i have no ideal how to play it on Android (Browser), can you give me some strategy. ithinks

I had a problem like this as well. My streams worked on iOS but I got a “Can’t play video” error on Android. Turns out they were using high profile H264 and needed to be baseline. Check out this page maybe it’ll help.

http://developer.android.com/guide/appendix/media-formats.html

thanks, I got a demo: http://developer.longtailvideo.com/player/trunk/fl5/js/test/examples/m3u8.html, it works fine on my android device, but it just play few seconds when I update the url:http://live.3gv.ifeng.com/live/zixun.m3u8.