ESP32Radio-V2 icon indicating copy to clipboard operation
ESP32Radio-V2 copied to clipboard

https streams: how to play them?

Open MarcEngrie opened this issue 1 year ago • 9 comments

I have an https stream I want to hear: "https://streams.radio.dpgmedia.cloud/redirect/joe_gold/mp3".

Adding "streams.radio.dpgmedia.cloud/redirect/joe_gold/mp3" or "https://streams.radio.dpgmedia.cloud/redirect/joe_gold/mp3" or "streams.radio.dpgmedia.cloud:443/redirect/joe_gold/mp3" into the config/preferences does not work. Is the code capable of handling https streams? If so, how to let it know it is a https stream.

Thx

MarcEngrie avatar Sep 09 '24 06:09 MarcEngrie

Sorry, the radio cannot play SSL streams. I do not understand why a station decides to use an encrypted stream. Maybe the are affraid that someone listens in....

Edzelf avatar Sep 09 '24 09:09 Edzelf

Your links are redirects, not a stream. Click on the link. Redirect will resolve to an actual stream (HTTPS). Remove "s" in the URL. Confirm. Unsrecure stream starts playing. Copy the URL. http://icecast-qmusicbe-cdp.triple-it.nl/joe-gold.mp3

It works perfectly fine. Should work also on the Radio.

aly-fly avatar Sep 09 '24 15:09 aly-fly

Ha! OK. Thx!

MarcEngrie avatar Sep 09 '24 16:09 MarcEngrie

Hi, I'm all new here, so I am reluctant to open a new topic ;-) I also have a one stream address that is not playing: ais-sa8.cdnstream1.com/2749_64.aac The track info is showing, but no sound. Works in browser and on a Frontier Silicon based webradio (Teufel360). Any hints?

Thank you for the great work!!! Armin

ArminHobbyProjects avatar Sep 12 '24 08:09 ArminHobbyProjects

This stream is playing with my radio (running an old version Th 03 Nov 2022 ...) Tested with the web interface. I pasted ais-sa8.cdnstream1.com/2749_64.aac in the field "Enter a station/file here ..." and clicked PLAY

fanfanlatulipe26 avatar Sep 12 '24 09:09 fanfanlatulipe26

Also tested it. Plays well with my set-up (SPDIFF output). If you are using a VS1003, AAC is not supported.

Edzelf avatar Sep 12 '24 09:09 Edzelf

I tested it on a fresh build/download last night, using the Helix SPDIF optical output on a "china" ESP32-wroom board.... Also pasting the URL via the web interface

ArminHobbyProjects avatar Sep 12 '24 09:09 ArminHobbyProjects

OK, nothing wrong with the radio!

The stream is only ~64k, so the reuslting SPDIF sample rate is 22k. My amplifier (Denon PMA-50) cannot handle sample rates <44k. it is working perfectly on a cheap SPDIF to analog converter.

I guess there is no option for an upsampling of the SPDIF output?

ArminHobbyProjects avatar Sep 13 '24 07:09 ArminHobbyProjects

...just for documentation on how to obtain a 44,1k bitrate from a 22,05k stream: In helixfuncs.h/playChunk(), double the samplerate and output each sample twice.

Though the 64kbit stream does not really sound adequate on HIFI equipment ;-(

Again thanks for the great effort&prompt support! Armin

ArminHobbyProjects avatar Sep 16 '24 08:09 ArminHobbyProjects