# Multi audio tracks with HLS

**URL:** https://community.wowza.com/t/multi-audio-tracks-with-hls/40667
**Category:** Wowza Streaming Engine
**Created:** [June 25, 2013, 8:59am UTC](https://community.wowza.com/t/multi-audio-tracks-with-hls/40667 "2013-06-25T08:59:29Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Benjamin\_Bellantonio](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@Benjamin\_Bellantonio](https://community.wowza.com/u/Benjamin_Bellantonio)
#### Post date: [June 25, 2013, 8:59am UTC](https://community.wowza.com/t/multi-audio-tracks-with-hls/40667/1 "2013-06-25T08:59:29Z")

</div>

Hello,

I have one video containing multiples subtitles et multiples audiotracks.

I follow this tutorial to display subtitles on my iPad : [https://www.wowza.com/docs/how-to-stream-webvtt-subtitles-to-ios-for-closed-captioning](https://www.wowza.com/docs/how-to-stream-webvtt-subtitles-to-ios-for-closed-captioning)

It’s working great, but now i want to have the possibility to switch audio tracks on my iPad.

There is a tutorial for switching audiotracks on iOS with HLS streaming ?

Thank you !

---

<div class="post-metadata">

### Author: ![Benjamin\_Bellantonio](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@Benjamin\_Bellantonio](https://community.wowza.com/u/Benjamin_Bellantonio)
#### Post date: [June 25, 2013, 10:36am UTC](https://community.wowza.com/t/multi-audio-tracks-with-hls/40667/2 "2013-06-25T10:36:05Z")

</div>

I implemented “IMediaReaderActionNotify” solution but it’s not what i need.

I want to switch audio tracks like i switch subtitles (in the native iOS player).

Thanks in advance… 🙂

---

<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: [June 25, 2013, 3:00pm UTC](https://community.wowza.com/t/multi-audio-tracks-with-hls/40667/3 "2013-06-25T15:00:02Z")

</div>

You can do that with Wowza Closed Caption and JW player Flash RTMP playback: you will have a choice of language tracks that you can switch dynamically. And JW player has HLS fallback, but I am not sure if you can switch dynamically with their HLS player. I will have to test, but I don’t think so.

For reference:

[https://www.wowza.com/docs/how-to-configure-closed-captioning-for-video-on-demand-streaming#jw](https://www.wowza.com/docs/how-to-configure-closed-captioning-for-video-on-demand-streaming#jw)

[https://www.wowza.com/docs/how-to-use-jw-player-with-wowza-streaming-engine](https://www.wowza.com/docs/how-to-use-jw-player-with-wowza-streaming-engine)

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: [June 27, 2013, 3:50pm UTC](https://community.wowza.com/t/multi-audio-tracks-with-hls/40667/4 "2013-06-27T15:50:28Z")

</div>

Ben,

Sorry, no, this is not supported using Wowza.

Richard

---

<div class="post-metadata">

### Author: ![Andrew\_Sinclair](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@Andrew\_Sinclair](https://community.wowza.com/u/Andrew_Sinclair)
#### Post date: [June 26, 2013, 12:16pm UTC](https://community.wowza.com/t/multi-audio-tracks-with-hls/40667/5 "2013-06-26T12:16:40Z")

</div>

You can do that with Native iOS player and either mp4 or HLS packaged videos. You need to make sure you have subtitle support switched on and you obviously need to have your encode setup for it as well.

On the encode side you need to encode a seperate audio track and if VOD you can embed it as a seperate element in the HTML5 player tags or if live you need to create a segmented aac playlist and include this as alternate audio in your master playlist.

I will add that it is non-trivial and once I get it all down I will write it up but happy to answer specific questions to when I get time.

---

<div class="post-metadata">

### Author: ![Benjamin\_Bellantonio](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@Benjamin\_Bellantonio](https://community.wowza.com/u/Benjamin_Bellantonio)
#### Post date: [June 26, 2013, 9:00am UTC](https://community.wowza.com/t/multi-audio-tracks-with-hls/40667/6 "2013-06-26T09:00:38Z")

</div>

Hey thanks for your replies !

I thinks it’s possible i found this m3u8 playlist from Apple

```auto
#EXTM3U
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="bipbop_audio",LANGUAGE="eng",NAME="BipBop Audio 1",AUTOSELECT=YES,DEFAULT=YES
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="bipbop_audio",LANGUAGE="eng",NAME="BipBop Audio 2",AUTOSELECT=NO,DEFAULT=NO,URI="alternate_audio_aac/prog_index.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English",AUTOSELECT=YES,FORCED=NO,LANGUAGE="eng",URI="subtitles/eng/prog_index.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English (Forced)",DEFAULT=YES,AUTOSELECT=YES,FORCED=YES,LANGUAGE="eng",URI="subtitles/eng_forced/prog_index.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Français",AUTOSELECT=YES,FORCED=NO,LANGUAGE="fra",URI="subtitles/fra/prog_index.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Français (Forced)",AUTOSELECT=YES,FORCED=YES,LANGUAGE="fra",URI="subtitles/fra_forced/prog_index.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Español",AUTOSELECT=YES,FORCED=NO,LANGUAGE="spa",URI="subtitles/spa/prog_index.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Español (Forced)",AUTOSELECT=YES,FORCED=YES,LANGUAGE="spa",URI="subtitles/spa_forced/prog_index.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="&#26085;&#26412;&#20154;",AUTOSELECT=YES,FORCED=NO,LANGUAGE="jpn",URI="subtitles/jpn/prog_index.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="&#26085;&#26412;&#20154; (Forced)",AUTOSELECT=YES,FORCED=YES,LANGUAGE="jpn",URI="subtitles/jpn_forced/prog_index.m3u8"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=263851,CODECS="mp4a.40.2, avc1.4d400d",RESOLUTION=416x234,AUDIO="bipbop_audio",SUBTITLES="subs"
gear1/prog_index.m3u8
#EXT-X-I-FRAME-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=28451,CODECS="avc1.4d400d",URI="gear1/iframe_index.m3u8"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=577610,CODECS="mp4a.40.2, avc1.4d401e",RESOLUTION=640x360,AUDIO="bipbop_audio",SUBTITLES="subs"
gear2/prog_index.m3u8
#EXT-X-I-FRAME-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=181534,CODECS="avc1.4d401e",URI="gear2/iframe_index.m3u8"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=915905,CODECS="mp4a.40.2, avc1.4d401f",RESOLUTION=960x540,AUDIO="bipbop_audio",SUBTITLES="subs"
gear3/prog_index.m3u8
#EXT-X-I-FRAME-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=297056,CODECS="avc1.4d401f",URI="gear3/iframe_index.m3u8"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1030138,CODECS="mp4a.40.2, avc1.4d401f",RESOLUTION=1280x720,AUDIO="bipbop_audio",SUBTITLES="subs"
gear4/prog_index.m3u8
#EXT-X-I-FRAME-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=339492,CODECS="avc1.4d401f",URI="gear4/iframe_index.m3u8"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1924009,CODECS="mp4a.40.2, avc1.4d401f",RESOLUTION=1920x1080,AUDIO="bipbop_audio",SUBTITLES="subs"
gear5/prog_index.m3u8
#EXT-X-I-FRAME-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=669554,CODECS="avc1.4d401f",URI="gear5/iframe_index.m3u8"
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=41457,CODECS="mp4a.40.2",AUDIO="bipbop_audio",SUBTITLES="subs"
gear0/prog_index.m3u8

```

As you can see there is two “EXT-X-MEDIA:TYPE=AUDIO”, it corresponds to audio tracks i can choose.

There is a screenshot of the result on an iPad :

![](http://testing.activpik.com/player/test/photo.PNG)

It’s possible to intercept the Wowza playlist.m3u8 creation to add “EXT-X-MEDIA:TYPE=AUDIO” lines ?

Thanks in advance 🙂

---

<div class="post-metadata">

### Author: ![Benjamin\_Bellantonio](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@Benjamin\_Bellantonio](https://community.wowza.com/u/Benjamin_Bellantonio)
#### Post date: [June 26, 2013, 9:18am UTC](https://community.wowza.com/t/multi-audio-tracks-with-hls/40667/7 "2013-06-26T09:18:30Z")

</div>

I you want to try on iOS :

[http://testing.activpik.com/player/test/hls.php](http://testing.activpik.com/player/test/hls.php)

It’s the result i’m looking for. I don’t want to use jwplayer just a video tag like my example

---

<div class="post-metadata">

### Author: ![Benjamin\_Bellantonio](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@Benjamin\_Bellantonio](https://community.wowza.com/u/Benjamin_Bellantonio)
#### Post date: [June 27, 2013, 2:14pm UTC](https://community.wowza.com/t/multi-audio-tracks-with-hls/40667/8 "2013-06-27T14:14:53Z")

</div>

Nobody can help me to find a solution ? 🙂
