我正在为icecast服务器开发客户端(www.icecast.org).任何人都可以告诉我,他们用于流媒体内容的格式是什么?
我正在查看他们的页面,但根本没有关于流格式的信息.
然后我检查了Wireshark跟踪,由于我的理解,我在200 OK响应GET请求时收到的音频数据的格式,它只是一个没有包含任何元数据的普通二进制音频数据,因此与SHOUTcast或HTTP相比较直播(HLS)它是相对简单的方法.
是对的吗?有经验吗?
Wireshark跟踪片段:
GET /bonton-128.mp3 HTTP/1.1
Host: icecast3.play.cz
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-US
Accept-Encoding: gzip, deflate
Connection: keep-alive
HTTP/1.0 200 OK
Content-Type: audio/mpeg
icy-br:128
ice-audio-info: ice-samplerate=44100;ice-bitrate=128;ice-channels=2
icy-br:128
icy-description:Radio Bonton
icy-genre:Pop / Rock
icy-name:Radio Bonton
icy-pub:0
icy-url:http://www.radiobonton.cz
Server: Icecast 2.3.2
Cache-Control: no-cache
Here are then aac or MPEG data
Run Code Online (Sandbox Code Playgroud)
感谢致敬,
斯登
我一直在尝试根据python中的url获取互联网广播电台的名称/标题,但到目前为止还没有运气.似乎互联网广播电台使用的是除HTTP之外的其他协议,但如果我错了,请纠正我.
例如:http://89.238.146.142: 7030
标题是:"Ibiza Global Radio"
如何将此标题存储在变量中?任何帮助将深深感激:)
亲切的问候,frigg