# Controlling HLS Media Chunks Naming

**URL:** <https://community.wowza.com/t/controlling-hls-media-chunks-naming/41742>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [December 20, 2013, 3:01pm UTC](https://community.wowza.com/t/controlling-hls-media-chunks-naming/41742 "2013-12-20T15:01:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rubin\_Gjerovski](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@Rubin\_Gjerovski](https://community.wowza.com/u/Rubin_Gjerovski)\
**Post date:** [December 20, 2013, 3:01pm UTC](https://community.wowza.com/t/controlling-hls-media-chunks-naming/41742/1 "2013-12-20T15:01:38Z")

</div>

Hello,

We are using WMS using http cupertino streaming for our products needs, configured with httpOriginMode=on and httpRandomizeMediaName=true.

At the moment, the media segments are named using a convention which goes something like:

media-u9kib6ecm\_17682.ts

media-u9kib6ecm\_17683.ts

media-u9kib6ecm\_17684.ts

We’d like to use our own naming convention, like: media-{unix-timestamp}.ts

How do we gain control over the naming convention?

A code sample would be excellent.

Thanks

---

<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:** [December 20, 2013, 10:31am UTC](https://community.wowza.com/t/controlling-hls-media-chunks-naming/41742/2 "2013-12-20T10:31:05Z")

</div>

Sorry, this is not supported, there is no way to set up a custom naming convention of HLS chunks.

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:** [December 28, 2013, 4:42pm UTC](https://community.wowza.com/t/controlling-hls-media-chunks-naming/41742/3 "2013-12-28T16:42:16Z")

</div>

Take a look at IHTTPStreamerCupertinoVODActionNotify2 and IHTTPStreamerCupertinoLivePacketizerDataHandler.

There is are examples of each in [this ID3 article](https://www.wowza.com/docs/how-to-convert-ontextdata-events-in-a-live-or-vod-stream-to-timed-events-id3-tags-in-an-apple-hls-stream%28ID3-tags%29-in-an-Apple-HLS-stream)

Richard

---

<div class="post-metadata">

**Author:** ![Rubin\_Gjerovski](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@Rubin\_Gjerovski](https://community.wowza.com/u/Rubin_Gjerovski)\
**Post date:** [December 24, 2013, 5:04pm UTC](https://community.wowza.com/t/controlling-hls-media-chunks-naming/41742/4 "2013-12-24T17:04:13Z")

</div>

> Sorry, this is not supported, there is no way to set up a custom naming convention of HLS chunks.
> 
> Salvadore

Ok than, if I don’t have an option to control the chunk naming, how do I get each chunk name on creation? Is there a method that is called upon media chunk creation? Example: onHTTPCupertinoMediaChunkCreated(String chunkName, etc…)

I will need to do my custom logic here and save the media chunk name to database.

---

<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:** [January 19, 2017, 6:10pm UTC](https://community.wowza.com/t/controlling-hls-media-chunks-naming/41742/5 "2017-01-19T18:10:12Z")

</div>

> Take a look at IHTTPStreamerCupertinoVODActionNotify2 and IHTTPStreamerCupertinoLivePacketizerDataHandler.
> 
> There is are examples of each in [this ID3 article](https://www.wowza.com/docs/how-to-convert-ontextdata-events-in-a-live-or-vod-stream-to-timed-events-id3-tags-in-an-apple-hls-stream%28ID3-tags%29-in-an-Apple-HLS-stream)
> 
> Richard

Is there still not a solution of the requirement?
