arduino-audio-tools
|
Audio Source which provides the data via the network from an URL. The URLs are stored in an Vector of dynamically allocated strings. More...
#include <AudioSource.h>
Public Member Functions | |
AudioSourceDynamicURL (AbstractURLStream &urlStream, const char *mime, int startPos=0) | |
template<typename T , size_t N> | |
AudioSourceDynamicURL (AbstractURLStream &urlStream, T(&urlArray)[N], const char *mime, int startPos=0) | |
void | addURL (const char *url) |
add a new url: a copy of the string will be stored on the heap | |
virtual void | begin () override |
Setup Wifi URL. | |
void | clear () |
int | index () |
virtual bool | isAutoNext () |
Returns default setting go to the next. | |
Stream * | nextStream (int offset) override |
Opens the next url from the array. | |
Stream * | operator[] (int idx) |
access with array syntax | |
Stream * | previousStream (int offset) override |
Opens the Previous url from the array. | |
Stream * | selectStream (const char *path) override |
Opens the selected url. | |
Stream * | selectStream (int idx) override |
Opens the selected url from the array. | |
virtual Stream * | setIndex (int index) |
same as selectStream - I just prefer this name | |
bool | setMetadataCallback (void(*fn)(MetaDataType info, const char *str, int len), ID3TypeSelection sel=SELECT_ICY) |
void | setTimeout (int millisec) |
Sets the timeout of the URL Stream in milliseconds. | |
virtual void | setTimeoutAutoNext (int millisec) |
Sets the timeout which is triggering to move to the next stream. - the default value is 500 ms. | |
virtual int | timeoutAutoNext () |
Provides the timeout which is triggering to move to the next stream. | |
const char * | toStr () |
Protected Member Functions | |
int | size () override |
const char * | value (int pos) override |
Protected Attributes | |
AbstractURLStream * | actual_stream = nullptr |
int | max = 0 |
const char * | mime = nullptr |
int | pos = 0 |
bool | started = false |
int | timeout_auto_next_value = 500 |
Vector< Str > | url_vector |
const char ** | urlArray = nullptr |
Audio Source which provides the data via the network from an URL. The URLs are stored in an Vector of dynamically allocated strings.