Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 564
Martin Avatar asked Nov 12 '22 22:11

Martin


1 Answers

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

like image 94
TheCodeArtist Avatar answered Dec 28 '22 08:12

TheCodeArtist