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
@@ -28,6 +28,8 @@
|
||||
|
||||
class AudioFileSourceHTTPStream : public AudioFileSource
|
||||
{
|
||||
friend class AudioFileSourceICYStream;
|
||||
|
||||
public:
|
||||
AudioFileSourceHTTPStream();
|
||||
AudioFileSourceHTTPStream(const char *url);
|
||||
@@ -44,7 +46,7 @@ class AudioFileSourceHTTPStream : public AudioFileSource
|
||||
bool SetReconnect(bool val) { reconnect = val; return true; }
|
||||
|
||||
private:
|
||||
uint32_t readInternal(void *data, uint32_t len, bool nonBlock);
|
||||
virtual uint32_t readInternal(void *data, uint32_t len, bool nonBlock);
|
||||
HTTPClient http;
|
||||
int pos;
|
||||
int size;
|
||||
|
||||
Reference in new issue
Block a user