Hi there,
I need to insert metadata into HLS live stream at a specific time, like “10.5s after the beginning”. Now I know how to insert ID3 tags into it, but I cannot control the time. Is there any way to do this in Wowza?
Thanks!
Yorick
Hi there,
I need to insert metadata into HLS live stream at a specific time, like “10.5s after the beginning”. Now I know how to insert ID3 tags into it, but I cannot control the time. Is there any way to do this in Wowza?
Thanks!
Yorick
Found an expedient way to achieve this: IMediaStream.timeCode. (and IMediaStream.videoTimeCode). This method returns the time relative to the beginning of this stream. For example, if I wanna insert metadata at 10.5s, I can call new Timer().schedule(metadataInjector(…), 10.5 * 1000 - currentStream.videoTimeCode()). I checked the output stream with DVBInspector and found the metadata was inserted roughly around 10.5s (with about 500ms’ deviation).
I’d appreciate it if someone could propose a more accurate way.
Yorick, you might have a read through this forum post for an answer
Salvadore