ESP32-audioI2S
ESP32-audioI2S copied to clipboard
radio using HLS not working
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?
I have never had an m3u8 with "../../",
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.
Do you think there might be a workaround? It works well with vlc and mpd...
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.
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!!
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.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.