Wowza Community

Wowza-Player onMetadata never called

Hi Guys,

(everything localhost)

I am using

this tutorial to create a http provider and

this 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

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?

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

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

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

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

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

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

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

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

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)

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

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

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!

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