# How to play live stream on mobile devices with html5 video tag?

**URL:** <https://community.wowza.com/t/how-to-play-live-stream-on-mobile-devices-with-html5-video-tag/37983>\
**Category:** Wowza Streaming Engine\
**Created:** [August 25, 2013, 3:10pm UTC](https://community.wowza.com/t/how-to-play-live-stream-on-mobile-devices-with-html5-video-tag/37983 "2013-08-25T15:10:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vadim\_Osovskiy](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@Vadim\_Osovskiy](https://community.wowza.com/u/Vadim_Osovskiy)\
**Post date:** [August 25, 2013, 3:10pm UTC](https://community.wowza.com/t/how-to-play-live-stream-on-mobile-devices-with-html5-video-tag/37983/1 "2013-08-25T15:10:20Z")

</div>

Still having slight issue streaming to mobile devices.

Desktop viewers are getting video from http://[IP]:1935/Live/ngrp:[STREAM]\_all/jwplayer.smil and it works great. Viewer can even change quality.

On mobile I tried giving rtsp link, but android users dont’ get audio, while iOS devices work fine.

Now I am trying to setup html5 video tag player that will take single quality (I don’t think multiple bitrate will work for this) stream like following http://[IP]:1935/Live/mp4:[STREAM]/playlist.m3u8 or http://[IP]:1935/Live/mp4:[STREAM] but neither work.

```auto
<video id="live" autoplay controls>
	<source src="http://[IP]:1935/Live/mp4:[STREAM]/playlist.m3u8" type="video/mp4" />
	<source src="http://[IP]:1935/Live/mp4:[STREAM]" type="video/mp4" />
<video>

```

Any tips?

---

<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:** [August 26, 2013, 8:12am UTC](https://community.wowza.com/t/how-to-play-live-stream-on-mobile-devices-with-html5-video-tag/37983/2 "2013-08-26T08:12:03Z")

</div>

Hi there,

What is the audio codec and sample rate of the stream?

For HTML5 you can use a playlist.m3u8 url (Cupertino stream) in a HTML5 video tag, but only on iOS devices, or Safari on Mac Snow Leopard or higher.

Does this URL work?

```auto
<video controls>
<source controls src="http://[IP]:1935/Live/mp4:[STREAM].mp4/playlist.m3u8"/> 
</video>

```

Salvadore

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [August 28, 2013, 11:33pm UTC](https://community.wowza.com/t/how-to-play-live-stream-on-mobile-devices-with-html5-video-tag/37983/3 "2013-08-28T23:33:23Z")

</div>

I don’t have an Android to test, but you could take that and try it with stream from your Wowza server using a playlist.m3u8 url.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [August 29, 2013, 2:12am UTC](https://community.wowza.com/t/how-to-play-live-stream-on-mobile-devices-with-html5-video-tag/37983/4 "2013-08-29T02:12:06Z")

</div>

Great, thanks for the update.

Richard

---

<div class="post-metadata">

**Author:** ![Vadim\_Osovskiy](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@Vadim\_Osovskiy](https://community.wowza.com/u/Vadim_Osovskiy)\
**Post date:** [August 28, 2013, 2:04pm UTC](https://community.wowza.com/t/how-to-play-live-stream-on-mobile-devices-with-html5-video-tag/37983/5 "2013-08-28T14:04:56Z")

</div>

Okay this does work on iOS, MacOS, and Safari.

How about playing live stream using html5 video tag on android?

I have seen other website play live stream using html5 video tag.

Edit. Here is an example of working live stream via html5 video tag.

```auto
<video x-webkit-airplay="allow" alt="Calvary Worship Center" width="520" height="292" src="http://f.wa.edge.christianworldmedia.com:1935/calvarylivestream/mp4:calvarylivestream/playlist.m3u8" autoplay controls poster="http://www.christianworldmedia.com/screencap919"></video>

```

Opening url gives proper playlist.m3u8 file from wowza. If I replace the url to my server, the player doesnt work.

---

<div class="post-metadata">

**Author:** ![Vadim\_Osovskiy](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@Vadim\_Osovskiy](https://community.wowza.com/u/Vadim_Osovskiy)\
**Post date:** [August 28, 2013, 4:01pm UTC](https://community.wowza.com/t/how-to-play-live-stream-on-mobile-devices-with-html5-video-tag/37983/6 "2013-08-28T16:01:00Z")

</div>

> I don’t have an Android to test, but you could take that and try it with stream from your Wowza server using a playlist.m3u8 url.
> 
> Richard

That’s what I did. The player doesn’t work, but I think it might be because I am using mp3.

However I have no luck streaming with aac or using transrate with mp3-\>aac transcode

---

<div class="post-metadata">

**Author:** ![Vadim\_Osovskiy](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@Vadim\_Osovskiy](https://community.wowza.com/u/Vadim_Osovskiy)\
**Post date:** [August 28, 2013, 5:29pm UTC](https://community.wowza.com/t/how-to-play-live-stream-on-mobile-devices-with-html5-video-tag/37983/7 "2013-08-28T17:29:26Z")

</div>

For whatever reason I thought html5 video tag can play video with mp3 audio. Well it can’t.

After changing audio to AAC I was able to play live stream using html5 video tag.

---

<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:** [August 26, 2013, 8:30am UTC](https://community.wowza.com/t/how-to-play-live-stream-on-mobile-devices-with-html5-video-tag/37983/8 "2013-08-26T08:30:02Z")

</div>

Also, ngrp: does work with HTML5.

```auto
<video controls>
<source controls src="http://[IP]:1935/Live/ngrp:[STREAM]_all/playlist.m3u8"/> 
</video>

```

Salvadore
