Preliminary ICY HTTP stream support
Add a subclass of the HTTPStream that can extract the ICY metadata. Needs to implement a callback function or parse it internally and expose a class variable to let the UI see the current stream information.
This commit is contained in:
1 parent
64032d8f43
commit
4b2bbe7ad5
4 files changed
+189
-2
No files matched your search
@@ -68,8 +68,9 @@ uint32_t AudioFileSourceHTTPStream::readNonBlock(void *data, uint32_t len)
|
||||
uint32_t AudioFileSourceHTTPStream::readInternal(void *data, uint32_t len, bool nonBlock)
|
||||
{
|
||||
if (!http.connected()) {
|
||||
http.end();
|
||||
Serial.println("Stream disconnected\n");
|
||||
Serial.flush();
|
||||
http.end();
|
||||
if (reconnect) {
|
||||
if (!open(saveURL)) {
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user