arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
URLLoaderHLS Class Reference
Inheritance diagram for URLLoaderHLS:
URLLoaderHLSBase

Public Member Functions

void addUrl (const char *url) override
 Adds the next url to be played in sequence.
 
int available () override
 Available bytes of the audio stream.
 
bool begin () override
 
int contentLength ()
 
const char * contentType ()
 
void end () override
 
size_t readBytes (uint8_t *data, size_t len) override
 Provides data from the audio stream.
 
void setBuffer (int size, int count) override
 
int urlCount () override
 

Protected Member Functions

void bufferRefill ()
 try to keep the buffer filled
 

Protected Attributes

bool active = false
 
RingBuffer< uint8_t > buffer {0}
 
int buffer_count = 10
 
int buffer_size = DEFAULT_BUFFER_SIZE
 
URLStream default_stream
 
URLStreamp_stream = &default_stream
 
const char * url_to_play = nullptr
 
Vector< const char * > urls {10}
 

Member Function Documentation

◆ urlCount()

int urlCount ( )
inlineoverridevirtual

Provides the number of open urls which can be played. Refills them, when min limit is reached.

Implements URLLoaderHLSBase.


The documentation for this class was generated from the following file: