# HLS Streaming (m3u8) to Android (Browser)

**URL:** <https://community.wowza.com/t/hls-streaming-m3u8-to-android-browser/42163>\
**Category:** Wowza Streaming Engine\
**Created:** [February 19, 2014, 5:15am UTC](https://community.wowza.com/t/hls-streaming-m3u8-to-android-browser/42163 "2014-02-19T05:15:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cap\_Pay](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@Cap\_Pay](https://community.wowza.com/u/Cap_Pay)\
**Post date:** [February 19, 2014, 5:15am UTC](https://community.wowza.com/t/hls-streaming-m3u8-to-android-browser/42163/1 "2014-02-19T05:15:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [February 19, 2014, 8:25am UTC](https://community.wowza.com/t/hls-streaming-m3u8-to-android-browser/42163/2 "2014-02-19T08:25:20Z")

</div>

It is possible that this device will support HTML 5 tag, but I do not have a device to test.

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

```auto
<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

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [February 19, 2014, 9:21am UTC](https://community.wowza.com/t/hls-streaming-m3u8-to-android-browser/42163/3 "2014-02-19T09:21:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [April 22, 2014, 10:35pm UTC](https://community.wowza.com/t/hls-streaming-m3u8-to-android-browser/42163/4 "2014-04-22T22:35:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [April 24, 2014, 9:49pm UTC](https://community.wowza.com/t/hls-streaming-m3u8-to-android-browser/42163/5 "2014-04-24T21:49:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kenny\_Griffin](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@Kenny\_Griffin](https://community.wowza.com/u/Kenny_Griffin)\
**Post date:** [April 23, 2014, 5:40pm UTC](https://community.wowza.com/t/hls-streaming-m3u8-to-android-browser/42163/6 "2014-04-23T17:40:27Z")

</div>

> 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](http://developer.android.com/guide/appendix/media-formats.html)

---

<div class="post-metadata">

**Author:** ![Cap\_Pay](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@Cap\_Pay](https://community.wowza.com/u/Cap_Pay)\
**Post date:** [February 19, 2014, 11:45pm UTC](https://community.wowza.com/t/hls-streaming-m3u8-to-android-browser/42163/7 "2014-02-19T23:45:01Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![tian\_qiang](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@tian\_qiang](https://community.wowza.com/u/tian_qiang)\
**Post date:** [April 23, 2014, 11:37am UTC](https://community.wowza.com/t/hls-streaming-m3u8-to-android-browser/42163/8 "2014-04-23T11:37:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tian\_qiang](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@tian\_qiang](https://community.wowza.com/u/tian_qiang)\
**Post date:** [April 24, 2014, 10:28am UTC](https://community.wowza.com/t/hls-streaming-m3u8-to-android-browser/42163/9 "2014-04-24T10:28:44Z")

</div>

> 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](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](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](http://live.3gv.ifeng.com/live/zixun.m3u8).
