# HLS manifest customization: Media Sequence and Target Duration

**URL:** <https://community.wowza.com/t/hls-manifest-customization-media-sequence-and-target-duration/95154>\
**Category:** Wowza Streaming Engine\
**Created:** [July 15, 2022, 1:56pm UTC](https://community.wowza.com/t/hls-manifest-customization-media-sequence-and-target-duration/95154 "2022-07-15T13:56:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Antonio\_Spalluto](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Antonio\_Spalluto](https://community.wowza.com/u/Antonio_Spalluto)\
**Post date:** [July 15, 2022, 1:56pm UTC](https://community.wowza.com/t/hls-manifest-customization-media-sequence-and-target-duration/95154/1 "2022-07-15T13:56:26Z")

</div>

Hi everybody,

I am struggling with customizing the HLS manifest for live streaming:

1. Media Sequence: set the initial value of it on the video streaming start to avoid client/CDN caching
2. Target Duration: fixing the TargetDuration to a constant value  
I am trying to achieve that using the Java API, but I cannot find the right documentation for achieving that.

Can you please point me to the right listeners/hooks for implementing it?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [July 17, 2022, 4:36pm UTC](https://community.wowza.com/t/hls-manifest-customization-media-sequence-and-target-duration/95154/2 "2022-07-17T16:36:39Z")

</div>

1. To avoid caching see this [post](http://community.wowza.com/t/is-it-possible-to-set-different-cache-control-header-for-200-and-404-request/52615/2).

2. Target Duration: _fixing the TargetDuration to a constant value_ -\> what do you mean by this? what kind of values do you get now?

---

<div class="post-metadata">

**Author:** ![Antonio\_Spalluto](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Antonio\_Spalluto](https://community.wowza.com/u/Antonio_Spalluto)\
**Post date:** [July 23, 2022, 9:19pm UTC](https://community.wowza.com/t/hls-manifest-customization-media-sequence-and-target-duration/95154/3 "2022-07-23T21:19:35Z")

</div>

Thanks for the hints about the headers caching settings but we would still like to set that for content distribution optimisation.  
About the target duration instead the value is almost always 1 second bigger than the chunks sizes in the manifest.
