开发者

Shoutcast media metainfo updates

开发者 https://www.devze.com 2023-02-20 13:40 出处:网络
Hi I have implemented the Shoutcast streaming protocol to get the Stre开发者_运维百科am metainfo (as described somewhere on the web). I get the string with the song title and author, but what happens

Hi I have implemented the Shoutcast streaming protocol to get the Stre开发者_运维百科am metainfo (as described somewhere on the web). I get the string with the song title and author, but what happens when during the stream, one song ends, another starts.. how do I recognize whether the song has ended and get the new metainfo?

How is this implemented in other players? They present the current song title immediately as it changes on the stream..?


This should help: http://www.smackfu.com/stuff/programming/shoutcast.html

In short: when metadata is requested you will get metadata block after each N bytes of the stream (N is returned in the response header). The server will send the metadata block after connecting and on song change.

0

精彩评论

暂无评论...
验证码 换一张
取 消