# Custom EXT-X-MEDIA tag without in hls playlist

**URL:** <https://community.wowza.com/t/custom-ext-x-media-tag-without-in-hls-playlist/47208>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [June 29, 2016, 8:32am UTC](https://community.wowza.com/t/custom-ext-x-media-tag-without-in-hls-playlist/47208 "2016-06-29T08:32:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavlo\_Yatsukhnenko](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@Pavlo\_Yatsukhnenko](https://community.wowza.com/u/Pavlo_Yatsukhnenko)\
**Post date:** [June 29, 2016, 8:32am UTC](https://community.wowza.com/t/custom-ext-x-media-tag-without-in-hls-playlist/47208/1 "2016-06-29T08:32:52Z")

</div>

Hi,

I want to create hls playlist with alternate rendition which hasn’t uri attribute in EXT-X-MEDIA tag

I use code

```auto
MediaListRendition mediaListRendition = new MediaListRendition();
WMSProperties properties = mediaListRendition.getProperties(true);
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_GROUP_ID, "aac");
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_NAME, "English");
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_LANGUAGE, "eng");
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_URI, "");
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_TAG, HTTPStreamerCupertinoIndexPlaylist.SMIL_TAG_TYPE_MEDIA);
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_DEFAULT, HTTPStreamerCupertinoIndexPlaylist.SMIL_VALUE_YES);
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_AUTOSELECT, HTTPStreamerCupertinoIndexPlaylist.SMIL_VALUE_YES);
mediaListSegment.addRendition(mediaListRendition);

```

to create something like this

```auto
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",LANGUAGE="eng",NAME="English",DEFAULT=YES,AUTOSELECT=YES

```

But in result I have

```auto
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",LANGUAGE="eng",NAME="English",DEFAULT=YES,AUTOSELECT=YES,URI="chunklist_b0.m3u8"

```

If I replace empty string with something else

```auto
properties.setProperty(HTTPStreamerCupertinoIndexPlaylist.SMIL_TAGS_URI, "NONEMPTYSTRING");

```

it appears in result

```auto
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",LANGUAGE="eng",NAME="English",DEFAULT=YES,AUTOSELECT=YES,URI="NONEMPTYSTRING"

```

---

<div class="post-metadata">

**Author:** ![Pavlo\_Yatsukhnenko](https://avatars.discourse-cdn.com/v4/letter/p/43a26b/32.png) [@Pavlo\_Yatsukhnenko](https://community.wowza.com/u/Pavlo_Yatsukhnenko)\
**Post date:** [July 15, 2016, 12:53pm UTC](https://community.wowza.com/t/custom-ext-x-media-tag-without-in-hls-playlist/47208/2 "2016-07-15T12:53:46Z")

</div>

Any ideas?

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [August 11, 2016, 7:54am UTC](https://community.wowza.com/t/custom-ext-x-media-tag-without-in-hls-playlist/47208/3 "2016-08-11T07:54:24Z")

</div>

Hi,

Unfortunately, this is not currently supported. While the URI attribute in the EXT-X-MEDIA is optional [according to spec, it is only if the audio track exists in all video renditions. In the Wowza implementation, we are specifying alternative audio tracks that don’t exist in the video renditions, which requires the URI attribute.

I will send it on as an enhancement request to our Product Manager, though. Do keep an eye on our [Software Updates](https://www.wowza.com/docs/software-updates) page to see when the feature is implemented. Note that there are no guarantees to a time frame.

Michelle

---

<div class="post-metadata">

**Author:** ![huy\_vo\_quang](https://avatars.discourse-cdn.com/v4/letter/h/bc8723/32.png) [@huy\_vo\_quang](https://community.wowza.com/u/huy_vo_quang)\
**Post date:** [June 28, 2022, 2:11am UTC](https://community.wowza.com/t/custom-ext-x-media-tag-without-in-hls-playlist/47208/4 "2022-06-28T02:11:23Z")

</div>

Do you have any update? I have similar problem, this feature is require for multi language audio-only hls treaming. Correct hls format is:

```auto
#EXTM3U
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="stereo",LANGUAGE="en",NAME="A"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="stereo",LANGUAGE="de",NAME="B",URI="B.m3u8"
#EXT-X-STREAM-INF:BANDWIDTH=831270,CODECS="mp4a.40.2",AUDIO="stereo"
A.m3u8

```

This format is supported in many hls player [https://github.com/video-dev/hls.js/pull/2773](https://github.com/video-dev/hls.js/pull/2773)
