MrBuddyCasino / ESP32_MP3_Decoder

A internet radio and bluetooth speaker project for the Espressif ESP32
774 stars 182 forks source link

"ICY 200 OK" Http response header is not supported #75

Open Rendal75 opened 4 years ago

Rendal75 commented 4 years ago

Hi, I'm trying to play that radio: http://stream3.polskieradio.pl:8900 It plays correctly with mpg123 on PC, but it "freezes" on ESP32.

After some debugging, it seems that in http_parser.c, we expect the HTTP response header to start with "HTTP". Here is the HTTP response header I have with that radio :

ICY 200 OK
icy-notice1:<BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR>
icy-notice2:SHOUTcast Distributed Network Audio Server/win32 v1.9.8<BR>
icy-name:Polskie Radio S.A. -- Program 1 -- http://moje.polskieradio.pl
icy-genre:
icy-url:http://stream3.polskieradio.pl:8900
content-type:audio/mpeg
icy-pub:0
icy-metaint:8192
icy-br:192

-> Have anyone got a solution for this ? Maybe on a fork ?