I currently have a 24/7 live Shoutcast feed I’m passing to Wowza to go to Flash, iPhone, and Android. Is it possible for a module of mine to be notified when the metadata changes? It seems that the IMediaStreamActionNotify2.onMetaData() routine isn’t being called for a live stream although onPlay() is.
I’d prefer a callback approach vs a timer; I’d like the most accuracy Wowza will afford me.
I have a PHP script I can use as a Plan B but I thought I’d ask you guys first; a Wowza module seems much more resource-friendly than my script.
I have a timer approach which collects the meta data out of the stream packets, but not a callback. It works very well down to the 4/5 second so should be sufficient ?
This is for some reporting to our future clients. I could use a timer but only if it would have to scale up to hundreds or thousands of potential streams per server.
the timer only pulls from the source of the shoutcast stream, so if thousands of people are listening it does not matter as it is still only look at one element. The link you provided does not seem to use getMetaDataProvider but yes I do use getMetaDataProvider to get the meta data into a variable to then use as needed. If the Notify works, might be the way forward, both I believe should produce a similar result.