StreamTitle
How to get the 'StreamTitle' of a webradio stream
To read the 'StreamTitle' of a webradio it is necessary to add the following line to the http-request:
Icy-MetaData:1
the answer can be read in the hex-dump below, the hex-dump was recorded with an ESP32
the request to the radio station was:
the anonymized hex-dump of a webradio stream (with description):
php example:
the output of this script looks like this:
Icy-MetaData:1
the answer can be read in the hex-dump below, the hex-dump was recorded with an ESP32
the request to the radio station was:
GET XXXXXXXXPATHXXXXXXXX HTTP/1.1\r\n
Host: XXXXXXHOSTXXXXXX\r\n
Icy-MetaData:1\r\n
Connection: close\r\n\r\n
Host: XXXXXXHOSTXXXXXX\r\n
Icy-MetaData:1\r\n
Connection: close\r\n\r\n
Good to know: The radio stations don't always send back the data you requested, sometimes icy-metaint is 0, sometimes there is no data in the StreamTitle,
but other parameters are given, e.g. when an advertisement is playing, and this is often when you start playing a radio station.
the anonymized hex-dump of a webradio stream (with description):
How to read the 'StreamTitle' of a webradio stream
php example:
the output of this script looks like this: