Wowza Community

Metadata from a live Shoutcast stream

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.

TIA.

I have just tried it and are getting onMetaData events in IMediaStreamActionNotify2.

There were some changes made to the Shoutcast Metadata handlers a little while ago so download and install the latest patch from here.

http://www.wowza.com/downloads/WowzaMediaServer-2-1-2/WowzaMediaServer2.1.2-patch5.zip


IMPORTANT!!!

Several core components have been updraded to newer versions. Before

applying this patch, delete the following files from your Wowza Media Server

installation:

[install-dir]/lib/bcprov-ext-jdk15-143.jar

[install-dir]/lib/commons-lang-2.4.jar

[install-dir]/lib/log4j-1.2.15.jar

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 ?

Shamrock

The onMetaData event handler only fires on the publish stream when new metadata is available. It does not fire on the playback streams.

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.

Did you use stream.getMetaDataProvider() like in this article? https://www.wowza.com/docs/how-to-log-play-statistics-on-a-timer

If you have the source, sure :slight_smile: I’m familiar with building Wowza modules from source.

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.

Shamrock

just following up on this one, do you want a module for Shoutcastmeta data ?

Shamrock

no source but can post two modules and a document explaining how they work.

Shamrock

Files and document can be found here

http://www.shamrock.org.uk/WowzaModules/ShoutcastMeta/

Shamrock

Double post edit out …

I would be interested in seeing this Shamrock!

-b

Hi @Andrew Kennedy
this link expired, http://www.shamrock.org.uk/WowzaModules/ShoutcastMeta/

is this module working for hls ?
Thank you