How do I extract streamed "now playing" data embedded in an Icecast audio (radio) stream on Samsung Smart-TV

Martin picture Martin · Sep 13, 2012 · Viewed 11.1k times · Source

I am creating a Samsung TV app for a radio station and they provide the "Now Playing" info within the Icecast stream. Is it possible to (and how do I) extract this information?

Answer

TheCodeArtist picture TheCodeArtist · Feb 19, 2013

Shoutcast supports "Icy-MetaData" - an additional field in the request header. When set, its a request to the shoutcast server to embed metadata about the stream at periodic intervals(once every "icy-metaint" bytes) in the encoded audio stream itself. The value of "icy-metaint" is decided by the shoutcast server configuration and is sent to the client as part of the initial reply.

Check out this post on Shoutcast Internet Radio Protocol for details on icy:metadata and sample code in C.

A somewhat more technical discussion is also available at
http://forums.radiotoolbox.com/viewtopic.php?t=74