# Clearing HLS packetized chunks

**URL:** <https://community.wowza.com/t/clearing-hls-packetized-chunks/44181>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [August 14, 2015, 1:14pm UTC](https://community.wowza.com/t/clearing-hls-packetized-chunks/44181 "2015-08-14T13:14:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diogo\_Moraes](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@Diogo\_Moraes](https://community.wowza.com/u/Diogo_Moraes)\
**Post date:** [August 14, 2015, 1:14pm UTC](https://community.wowza.com/t/clearing-hls-packetized-chunks/44181/1 "2015-08-14T13:14:37Z")

</div>

I have a stream that is packetized for HLS Cupertino, and this stream is actually created at run-time by the module, and plays live streams sent by the clients. When I change what stream this stream is playing, I need to clear the already packetized chunks, so somebody watching the stream from the new client, won’t see the last 10 seconds of the previous stream, but rather just wait for this new stream to be packetized. Is there a way?

Maybe shutting down and calling init again on the stream livestreampacketizer??

---

<div class="post-metadata">

**Author:** ![Diogo\_Moraes](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@Diogo\_Moraes](https://community.wowza.com/u/Diogo_Moraes)\
**Post date:** [August 18, 2015, 12:06pm UTC](https://community.wowza.com/t/clearing-hls-packetized-chunks/44181/2 "2015-08-18T12:06:37Z")

</div>

Anybody? Salvadore?
