# Wowza-Player onMetadata never called

**URL:** <https://community.wowza.com/t/wowza-player-onmetadata-never-called/52671>\
**Category:** Wowza Developer Dojo\
**Created:** [January 16, 2019, 4:38pm UTC](https://community.wowza.com/t/wowza-player-onmetadata-never-called/52671 "2019-01-16T16:38:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frank\_Volker](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@Frank\_Volker](https://community.wowza.com/u/Frank_Volker)\
**Post date:** [January 16, 2019, 4:38pm UTC](https://community.wowza.com/t/wowza-player-onmetadata-never-called/52671/1 "2019-01-16T16:38:33Z")

</div>

Hi Guys,

(everything localhost)

I am using

[this](https://www.wowza.com/docs/how-to-inject-cue-points-or-metadata) tutorial to create a http provider and

[this](https://www.wowza.com/docs/how-to-listen-for-metadata-and-trigger-an-action-with-the-wowza-player-javascript-api) tutorial to create a javascript player to receive it.

then I play the stream in browser (working, using OBS to stream my own desktop)

and call Inject-URL in browser to inject metadata to the stream like this

[http://localhost/marathonData?application=live&stream=frank&name=Bessie%20Smith&place=10&time=00%3A00%3A02](http://localhost/marathonData?application=live&stream=frank&name=Bessie%20Smith&place=10&time=00%3A00%3A02)

the problem: the http provider is called (ok), if i debug java code everything is fine, the player plays my stream (ok) but the onMetadata() function is never called… am i doing something wrong?

---

<div class="post-metadata">

**Author:** ![Frank\_Volker](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@Frank\_Volker](https://community.wowza.com/u/Frank_Volker)\
**Post date:** [January 17, 2019, 5:05pm UTC](https://community.wowza.com/t/wowza-player-onmetadata-never-called/52671/2 "2019-01-17T17:05:01Z")

</div>

somehow the links dont work in the post above

this is the link for http provider

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

this is the link for javascript wowza player listening for injects

[https://www.wowza.com/docs/wowza-player-javascript-api-how-to-listen-for-metadata-and-trigger-an-action-with-the-wowza-player-javascript-api](https://www.wowza.com/docs/wowza-player-javascript-api-how-to-listen-for-metadata-and-trigger-an-action-with-the-wowza-player-javascript-api)

in my javascript website i have onPlay() listener (working) onLoad() listener (working) but the onMetadata() is never triggered. the name of the application (live) and the name of the stream (frank) are correct

---

<div class="post-metadata">

**Author:** ![Frank\_Volker](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@Frank\_Volker](https://community.wowza.com/u/Frank_Volker)\
**Post date:** [January 17, 2019, 5:05pm UTC](https://community.wowza.com/t/wowza-player-onmetadata-never-called/52671/3 "2019-01-17T17:05:04Z")

</div>

somehow the links dont work in the post above

this is the link for http provider

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

this is the link for javascript wowza player listening for injects

[https://www.wowza.com/docs/wowza-player-javascript-api-how-to-listen-for-metadata-and-trigger-an-action-with-the-wowza-player-javascript-api](https://www.wowza.com/docs/wowza-player-javascript-api-how-to-listen-for-metadata-and-trigger-an-action-with-the-wowza-player-javascript-api)

in my javascript website i have onPlay() listener (working) onLoad() listener (working) but the onMetadata() is never triggered. the name of the application (live) and the name of the stream (frank) are correct

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [January 17, 2019, 5:42pm UTC](https://community.wowza.com/t/wowza-player-onmetadata-never-called/52671/4 "2019-01-17T17:42:38Z")

</div>

Hello @Frank Völker, thanks for reaching out. I am looking into this for you with an engineer and will respond shortly.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [January 17, 2019, 5:43pm UTC](https://community.wowza.com/t/wowza-player-onmetadata-never-called/52671/5 "2019-01-17T17:43:38Z")

</div>

Are you looking to inject data at the beginning of the stream or throughout the stream? Thank you.

---

<div class="post-metadata">

**Author:** ![Frank\_Volker](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@Frank\_Volker](https://community.wowza.com/u/Frank_Volker)\
**Post date:** [January 18, 2019, 5:44pm UTC](https://community.wowza.com/t/wowza-player-onmetadata-never-called/52671/6 "2019-01-18T17:44:30Z")

</div>

I tried both, injecting while a stream was running and after inject starting a new stream. I was thinking, if I watch the videos streaming my own desktop I should get the console.log(“INJECT”) (example) console output at the moment where I injected (meaning, when the stream reches the point, where i injected)

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [January 18, 2019, 6:09pm UTC](https://community.wowza.com/t/wowza-player-onmetadata-never-called/52671/7 "2019-01-18T18:09:11Z")

</div>

The engineers would like to take a look at your config files to quickly identify the issue. To do that, you will have to submit a support ticket @Frank Völker.

[https://www.wowza.com/support/open-ticket](https://www.wowza.com/support/open-ticket)

In the meantime, you could try this test in addition to the player listening that you mentioned (it is Java however):

Add a listener for the publish event. You can then have a Timer task thread that periodically calls injectMetaData every x seconds, where your injectMetaData is inserting the AMF data packet.

Here’s more information on using event listeners:  
[https://www.wowza.com/docs/how-to-use-event-listeners-in-wowza-media-server](https://www.wowza.com/docs/how-to-use-event-listeners-in-wowza-media-server)

If that doesn’t help, please send the support ticket and the engineers will work with you directly in regard to the Javascript Player method you have set up. Thanks!

---

<div class="post-metadata">

**Author:** ![Frank\_Volker](https://avatars.discourse-cdn.com/v4/letter/f/ec9cab/32.png) [@Frank\_Volker](https://community.wowza.com/u/Frank_Volker)\
**Post date:** [January 24, 2019, 5:09pm UTC](https://community.wowza.com/t/wowza-player-onmetadata-never-called/52671/8 "2019-01-24T17:09:11Z")

</div>

I finally got it up and running now with converting to ID3 and use Application.xml to include the converter from the “live” project, not the main Application.xml from wowza… also the post request was successful when i used javascript-post request, browser-addons to send post-requests did not work correctly somehow
