# Get HLS Chunk IDs for edges

**URL:** https://community.wowza.com/t/get-hls-chunk-ids-for-edges/46996
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [May 5, 2016, 3:29pm UTC](https://community.wowza.com/t/get-hls-chunk-ids-for-edges/46996 "2016-05-05T15:29:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lloyd\_waddell](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@lloyd\_waddell](https://community.wowza.com/u/lloyd_waddell)
#### Post date: [May 5, 2016, 3:29pm UTC](https://community.wowza.com/t/get-hls-chunk-ids-for-edges/46996/1 "2016-05-05T15:29:48Z")

</div>

Is there a way to get the current chunk ID of a liverepeater-edge?

I have accessed the chunk IDs for the origin app using (LiveStreamPacketizerCupertino)stream.getLiveStreamPacketizer(“cupertinostreamingpacketizer”).getLastChunkId(), but on the edge app the packetizers are empty. Is there a way that I can access the packetizer for the repeater or the repeater object itself, so that I can look up what chunk it is on? I want to see if my edges are falling behind or if they are getting out of sync with the origin.

Also, I am setting my own chunk IDs using IHTTPStreamerCupertinoLiveStreamPacketizerChunkIdHandler on an origin, and the .ts results are reflecting the change. However, when I view a live stream over an

edge the chunk IDs are reverting back to their default and starting at 1, not the custom IDs that I’ve set. Is there a way for the edges to follow the chunk id of the origin?

Lloyd

---

<div class="post-metadata">

### Author: ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)
#### Post date: [May 9, 2016, 10:21am UTC](https://community.wowza.com/t/get-hls-chunk-ids-for-edges/46996/2 "2016-05-09T10:21:27Z")

</div>

Hello Lloyd

I would take a look at our [IHTTPStreamerCupertinoLivePacketizerDataHandler2](https://www.wowza.com/docs/how-to-add-custom-playlist-headers-to-apple-hls-manifests) interface and you could leverage getChunkIndex on your edge (or an array of other methods via the LiveStreamPacketizerCupertinoChunk object).

Thanks,

Matt
