# Live streaming: server-side metadata modifications

**URL:** https://community.wowza.com/t/live-streaming-server-side-metadata-modifications/38342
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [April 2, 2012, 9:49am UTC](https://community.wowza.com/t/live-streaming-server-side-metadata-modifications/38342 "2012-04-02T09:49:13Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Leonardo\_Scattola](https://avatars.discourse-cdn.com/v4/letter/l/8baadc/32.png) [@Leonardo\_Scattola](https://community.wowza.com/u/Leonardo_Scattola)
#### Post date: [April 2, 2012, 9:49am UTC](https://community.wowza.com/t/live-streaming-server-side-metadata-modifications/38342/1 "2012-04-02T09:49:13Z")

</div>

Hi all!

A quick question: is it possible to alter (with a server-side module) the metadata coming from a live stream?

The scenario I wish to achieve is the following:

- an user publishes a live stream

- the server intercepts the metadata coming on the streams before they’re sent to the other clients

- the server alters the metadata packet and writes it back onto the stream

I can read the metadata coming on the stream with a module which implements IMediaStreamActionNotify2 (overriding the onMetaData function), but I can’t find a function to write the metadata back.

Another path that I’ve been following was to write a class which performs the very same actions for MediaReaderFLV but in a live scenario, but I don’t think that such a class exists.

Thank you,

Leonardo

---

<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: [April 2, 2012, 2:35pm UTC](https://community.wowza.com/t/live-streaming-server-side-metadata-modifications/38342/2 "2012-04-02T14:35:41Z")

</div>

Take a look at these examples:

[https://www.wowza.com/docs/how-to-inject-cue-points-or-metadata](https://www.wowza.com/docs/how-to-inject-cue-points-or-metadata)

Richard

---

<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: [April 2, 2012, 2:48pm UTC](https://community.wowza.com/t/live-streaming-server-side-metadata-modifications/38342/3 "2012-04-02T14:48:54Z")

</div>

The essential code that does this is not dependent on Flash client. You can easily copy what you need into the onMetaData handler.

Richard

---

<div class="post-metadata">

### Author: ![Leonardo\_Scattola](https://avatars.discourse-cdn.com/v4/letter/l/8baadc/32.png) [@Leonardo\_Scattola](https://community.wowza.com/u/Leonardo_Scattola)
#### Post date: [April 2, 2012, 3:44pm UTC](https://community.wowza.com/t/live-streaming-server-side-metadata-modifications/38342/4 "2012-04-02T15:44:01Z")

</div>

Richard,

thanks! I saw this post before, but the injection of new metadata and the “setCaption” method are triggered by a client-side modification. What I was looking for is a server-side method to alter thee metadata on-the-fly, upon detection.

---

<div class="post-metadata">

### Author: ![Leonardo\_Scattola](https://avatars.discourse-cdn.com/v4/letter/l/8baadc/32.png) [@Leonardo\_Scattola](https://community.wowza.com/u/Leonardo_Scattola)
#### Post date: [April 2, 2012, 3:49pm UTC](https://community.wowza.com/t/live-streaming-server-side-metadata-modifications/38342/5 "2012-04-02T15:49:50Z")

</div>

Richard,

thank you for your prompt response! I’ll give it a try as soon as I can.

Thank you again,

Leonardo
