# How do I Inject metadata into a DELAYED HLS live stream?

**URL:** <https://community.wowza.com/t/how-do-i-inject-metadata-into-a-delayed-hls-live-stream/94509>\
**Category:** Wowza Streaming Engine\
**Tags:** wowza-streaming-engine\
**Created:** [January 28, 2022, 10:17pm UTC](https://community.wowza.com/t/how-do-i-inject-metadata-into-a-delayed-hls-live-stream/94509 "2022-01-28T22:17:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Farrow](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Dan\_Farrow](https://community.wowza.com/u/Dan_Farrow)\
**Post date:** [January 28, 2022, 10:17pm UTC](https://community.wowza.com/t/how-do-i-inject-metadata-into-a-delayed-hls-live-stream/94509/1 "2022-01-28T22:17:19Z")

</div>

I have a use case where I want ID3 metadata for a live stream to arrive a few seconds ahead of the video event which it aligns with. I think I can accomplish this if I delay a live input stream and then inject metadata into the **delayed** stream.

I am able to successfully do both of these things independently, but can’t seem to inject metadata into the **delayed** stream.

I used this example to successfully inject metadata into a normal stream:  
[https://www.wowza.com/docs/how-to-inject-cue-points-or-metadata](https://www.wowza.com/docs/how-to-inject-cue-points-or-metadata)

I used this example to successfully delay a stream:  
[http://www.wowzamedia.com/downloads/forums/publishwithdelay/PublishWithDelay.zip](http://www.wowzamedia.com/downloads/forums/publishwithdelay/PublishWithDelay.zip)

These both work on their own, but if I try to inject metadata into the delayed stream, the **LiveStreamPacketizerDataHandler.onFillChunkDataPacket()** event never fires, however I see the delayed stream exists when I call the Java module.

For example I have “myStream” and “myStream\_delay” which is delayed by 10 seconds. FYI, the delayed stream is a copy of an incoming RTMP stream and created via Java code, it is not a “normal” stream…

Injecting metadata into “myStream” works fine, and that data even appears in “myStream\_delay”…However, I want the data to be injected about 10 seconds **ahead** of the video stream. When I try to inject metadata into “myStream\_delay”, the module function LiveStreamPacketizerDataHandler.onFillChunkDataPacket() never gets called. Do I have to do something special to register a listener on the delayed stream?
