ESP32-audioI2S icon indicating copy to clipboard operation
ESP32-audioI2S copied to clipboard

radio using HLS not working

Open lidense opened this issue 1 year ago • 6 comments

I would like to listen to this radio: https://radioitaliasmi.akamaized.net/hls/live/2093120/RISMI/master.m3u8 Works with vlc but not with this library, any ideas?

lidense avatar Apr 21 '24 21:04 lidense

I have never had an m3u8 with "../../", image

but the host disconnects when a new playlist is requested. No idea why. With encrypted connections, it takes longer to establish the connection than data can be played in the DMA. This leads to short interruptions. The host does not seem to allow unencrypted connections.

schreibfaul1 avatar Apr 22 '24 06:04 schreibfaul1

Do you think there might be a workaround? It works well with vlc and mpd...

lidense avatar Apr 22 '24 06:04 lidense

When I call up the URL https://radioitaliasmi.akamaized.net/hls/live/2093120/RISMI/master.m3u8, the m3u8 file is transferred and the connection is terminated. The connection remains open for the URLs to the audio sequences, as expected. Unfortunately, the ESP32 takes too long to establish an https connection (it will be fast enough on a PC). If anyone knows a solution, please post here.

schreibfaul1 avatar Apr 22 '24 07:04 schreibfaul1

I gathered that the /.../ is a relative link so I put this as the address for audio.connecttohost: "https://radioitaliasmi.akamaized.net/hls/live/2093120-b/RISMI/stream01/streamPlaylist.m3u8" And now IT WORKS perfectly!!

lidense avatar Apr 23 '24 12:04 lidense

great! the connection is not terminated after receiving the m3u8 playlist. The reason for this is that it can take a few seconds to establish a TLS connection. The WiFiClientSecure blocks during this time. The WiFiClient can be replaced by the HTTPClient without blocking. But there is nothing for WiFiClientSecure and I am not familiar with SSL.

schreibfaul1 avatar Apr 23 '24 13:04 schreibfaul1

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar May 24 '24 02:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 07 '24 02:06 github-actions[bot]