# How to add #EXT-X-ENDLIST

**URL:** <https://community.wowza.com/t/how-to-add-ext-x-endlist/47420>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [August 24, 2016, 4:32pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420 "2016-08-24T16:32:29Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ilian\_Yotov](https://avatars.discourse-cdn.com/v4/letter/i/91b2a8/32.png) [@Ilian\_Yotov](https://community.wowza.com/u/Ilian_Yotov)\
**Post date:** [August 24, 2016, 4:32pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/1 "2016-08-24T16:32:29Z")

</div>

Hello,

I have a problem how to find when the live stream ends.

According to the HLS specification the client would stop requesting more index files when the #EXT-X-ENDLIST occurs in chunklist\_xxxxxxx.m3u8.

But when I stop streaming to Wowza the #EXT-X-ENDLIST tag doesn’t appear. The client still make requests for index files and the server return the same index file.

I cannot find any useful information how can I add this tag.

Is there any way to added it with java api?

Maybe to intercept requests to chunklist\_xxxxxxx.m3u8 file and to add the tag if there is no stream with this name?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![wang\_haoming](https://avatars.discourse-cdn.com/v4/letter/w/5e9695/32.png) [@wang\_haoming](https://community.wowza.com/u/wang_haoming)\
**Post date:** [September 4, 2016, 3:11pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/2 "2016-09-04T15:11:47Z")

</div>

same problem and waiting for answer

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [September 29, 2016, 11:05am UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/3 "2016-09-29T11:05:18Z")

</div>

Hi,

This feature is on our product development roadmap. I can’t say when this will be made available but rest assured it is being looked at.

Regards,

Paul

---

<div class="post-metadata">

**Author:** ![Filippo\_Rocca](https://avatars.discourse-cdn.com/v4/letter/f/ba8739/32.png) [@Filippo\_Rocca](https://community.wowza.com/u/Filippo_Rocca)\
**Post date:** [March 17, 2017, 3:49pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/4 "2017-03-17T15:49:42Z")

</div>

Any news about this? I think it is a huge miss.

---

<div class="post-metadata">

**Author:** ![Filippo\_Rocca](https://avatars.discourse-cdn.com/v4/letter/f/ba8739/32.png) [@Filippo\_Rocca](https://community.wowza.com/u/Filippo_Rocca)\
**Post date:** [March 17, 2017, 3:50pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/5 "2017-03-17T15:50:10Z")

</div>

Any news about this? I think it is a huge miss.

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [March 17, 2017, 4:30pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/6 "2017-03-17T16:30:21Z")

</div>

Hi,

We recently added EXT-X-ENDLIST capability for Akamai HLS Stream Targets. Having the capability of adding this to live HLS streams is on our roadmap, but I can’t give any timescales for when this will be available.

Regards,

Paul

---

<div class="post-metadata">

**Author:** ![Filippo\_Rocca](https://avatars.discourse-cdn.com/v4/letter/f/ba8739/32.png) [@Filippo\_Rocca](https://community.wowza.com/u/Filippo_Rocca)\
**Post date:** [March 20, 2017, 10:14pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/7 "2017-03-20T22:14:53Z")

</div>

Ok, but. Is it theoretically implementable through a custom module at least?

And what about the EXT-X-DISCONTINUITY tag?

---

<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:** [April 1, 2017, 12:56am UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/8 "2017-04-01T00:56:42Z")

</div>

Hi,

It is not currently possible to add the ENDLIST tag via the API. You can force adding the DISCONTINUITY tag. To do so via the API, use the following method in LiveStreamPacketizerCupertinoChunk to force insertion of discontinuity into Apple HLS (cupertino) live stream

– forceDiscontinuity(boolean value): value control if discontinuity is shown in chunklist for this chunk (false will clear any discontinuities due to chunk duration or change in codecs)

---

<div class="post-metadata">

**Author:** ![Thiago\_Lima](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/thiago_lima/32/905_2.png) [@Thiago\_Lima](https://community.wowza.com/u/Thiago_Lima)\
**Post date:** [June 8, 2017, 8:44pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/9 "2017-06-08T20:44:27Z")

</div>

You can trick Wowza to send EXT-X-ENDLIST, you will need to listen to Unpublish events and then you will need to make the HLS packetizer send EXT-X-ENDLIST tag in the last chunk.

Just take a look in IMediaStreamActionNotify3 and ILiveStreamPacketizerActionNotify interfaces.

---

<div class="post-metadata">

**Author:** ![Marcus\_Johansson1](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@Marcus\_Johansson1](https://community.wowza.com/u/Marcus_Johansson1)\
**Post date:** [July 3, 2017, 12:33pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/10 "2017-07-03T12:33:12Z")

</div>

Could you elaborate on wow that would work?

As far as I can see the onUnpublish event in IMediaStreamActionNotify3 happens after any type of event inside ILiveStreamPacketizerActionNotify / IHTTPStreamerCupertinoLivePacketizerDataHandler2. Since the last partial chunk is never created in Wowza, you would not have time to tell the ILiveStreamPacketizerActionNotify that the stream was unpublished?

---

<div class="post-metadata">

**Author:** ![David\_Frank](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@David\_Frank](https://community.wowza.com/u/David_Frank)\
**Post date:** [July 19, 2017, 11:29pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/11 "2017-07-19T23:29:13Z")

</div>

Hi there,

This issue is still happening with Wowza 4.7. Is this fix ever going to come out?

We have a multi-webcam live environment and due to this missing tag, we have a ton of issues on the video player side. Can you kindly provide a sample code snippet that I can use to add this functionality myself, please?

Thank you.

---

<div class="post-metadata">

**Author:** ![Kristeen\_Wurtele](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@Kristeen\_Wurtele](https://community.wowza.com/u/Kristeen_Wurtele)\
**Post date:** [February 27, 2018, 5:21pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/13 "2018-02-27T17:21:42Z")

</div>

It’s almost 1 year later. Any updates on whether this is possible now?

---

<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:** [March 15, 2018, 1:01am UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/14 "2018-03-15T01:01:25Z")

</div>

This is currently in our enhancement request at this time, although no specific timeline yet.

---

<div class="post-metadata">

**Author:** ![Mark\_Barron](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Mark\_Barron](https://community.wowza.com/u/Mark_Barron)\
**Post date:** [August 9, 2018, 9:34pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/15 "2018-08-09T21:34:53Z")

</div>

Any update on when this will be fixed? Thanks!

---

<div class="post-metadata">

**Author:** ![Mark\_Barron](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Mark\_Barron](https://community.wowza.com/u/Mark_Barron)\
**Post date:** [August 13, 2018, 3:25pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/16 "2018-08-13T15:25:36Z")

</div>

Never mind. This was fixed in 4.6.0 see the release notes for that version.

- Added support to the Akamai HLS stream target for adding the EXT-X-ENDLIST tag to the end of the media playlist when the source times out or disconnects. This is enabled by adding “cupertino.addEndListOnDisconnect”:“true” to the map file entry (default is false)

---

<div class="post-metadata">

**Author:** ![Guilherme\_Raduenz](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@Guilherme\_Raduenz](https://community.wowza.com/u/Guilherme_Raduenz)\
**Post date:** [January 23, 2019, 6:45pm UTC](https://community.wowza.com/t/how-to-add-ext-x-endlist/47420/17 "2019-01-23T18:45:42Z")

</div>

Yes, EXT-X-ENDLIST will be added before the last chunk.
