-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defining host and path are not clear #92
Comments
Hi jackjean, here there is another one who listen to French radio stations 👍 1- you cannot code directly the url http://direct.franceinter.fr/live/franceinter-midfi.mp3 because this url redirects to http://icecast.radiofrance.fr/franceinter-midfi.mp3 and the webradio exemple cannot treat redirect url
} // end of !client.connected() test if( client.available() && !pause ) {
} // end of client.available test 2- As I tried http://direct.franceinter.fr/live/franceinter-midfi.mp3 and this url redirect to http://icecast.radiofrance.fr/franceinter-midfi.mp3, you should get the same bad quality sound. There is also the url http://icecast.radiofrance.fr:/franceinter-lofi.mp3 in lower sound quality, but you may get a better result. If you read several threads many people here tried workarrounds with complex ring buffers, etc... to suppress glitches. No success for me. However I can listen my web radio as long as I wish since the day the radio station is requested in http 1.0 instead of http 1.1, look at the 'client.print()' in the above code lines. |
I'd like to add a few things :-) The number of slashes "/" doesen't matter, but they have to be in path, not in host. I.e. your first idea would have worked if it wasn't for the redirect. For finding stations, I found the following urls quite helpfull: Like @philippedc said, meta data (like songtitle etc.) in the stream can cause glitches when send to VS1053.
or
to the client.print command (right before the Connection: close line). For so called chunked encoding (see #52) data comes in chunks, you can either try to filter it out searching for /r and /n in the stream, like @wmarkow in the Web radio chunked demo Buffering the stream proves to be heplful for streams that go around the globe and do not provide a stable connection. |
@philippedc |
@Dr-Dawg |
De rien :-) |
@jackjean88 Can we close the issue? Btw. closed issues are great documentation for problem-solution approach! |
@Dr-Dawg many thanks ! A good exercise for me tonight... to success to listen this radio: http://radioseribatu.out.airtime:8000/radioseribatu_a (Balinese music) |
Hi, I have successfully coded the set ESP32 VS2053 using the WebRadioDemo example.
Since I am looking for listening french radios, I was surprised by the poor quality of this stream :
http://icecast.radiofrance.fr/franceinter-midfi.mp3 (noisy and mashed).
Others streams sound really good like thisone : http://stream.rfm.fr/rfm-wr7.mp3
So I decided to find another host for Radio France and found thisone :
http://direct.franceinter.fr/live/franceinter-midfi.mp3
Here starts my problem : this last link contains 2 x "/"
So I first choose to set the host at "direct.franceinter.fr" and the path at "/live/franceinter-midfi.mp3"
Result no connection.
Than I set the host at "direct.franceinter.fr/live" and the path at "/live/franceinter-midfi.mp3"
Same result : no connection.
My question is : how to set both host and path for url containing more than one "/" ?
Thank you in advance for your lightening.
The text was updated successfully, but these errors were encountered: