arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
URLLoaderHLS< URLStream > Class Template Reference

Public Member Functions

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

Protected Member Functions

void bufferRefill ()
 try to keep the buffer filled
 

Protected Attributes

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

Member Function Documentation

◆ urlCount()

template<typename URLStream >
int urlCount ( )
inline

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


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