arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
HLSParser Class Reference

Simple Parser for HLS data. We select the entry with min bandwidth. More...

#include <HLSStream.h>

Public Member Functions

int available ()
 
bool begin ()
 
bool begin (const char *urlStr)
 
int contentLength ()
 
const char * contentType ()
 Provides the content type of the audio data.
 
void end ()
 Closes the processing.
 
const char * getCodec ()
 Provides the codec.
 
const char * indexUrl ()
 
size_t readBytes (uint8_t *data, size_t len)
 
const char * segmentsUrl ()
 
void setBuffer (int size, int count)
 
void setLogLevel (AudioLogger::LogLevel level)
 Defines the class specific custom log level.
 
void setUrlCount (int count)
 Defines the number of urls that are preloaded in the URLLoaderHLS.
 
void setUrlLoader (URLLoaderHLSBase &loader)
 

Protected Member Functions

bool parseIndex ()
 
bool parseIndexLine (StrView &str)
 
bool parseIndexLines ()
 
bool parseSegmentLine (StrView &str)
 
bool parseSegmentLines ()
 
bool parseSegments ()
 
void reloadSegments ()
 

Protected Attributes

bool active = false
 
int bandwidth = 0
 
Str codec
 
CustomLogLevel custom_log_level
 
URLLoaderHLS default_url_loader
 
const char * index_url_str = nullptr
 
bool is_extm3u = false
 
int media_sequence = 0
 
uint64_t next_sement_load_time = 0
 
URLLoaderHLSBasep_url_loader = &default_url_loader
 
bool parse_segments_active = false
 
int segment_count = 0
 
Str segments_url_str
 
int tartget_duration_ms = 5000
 
bool url_active = false
 
int url_count = 5
 
URLHistory url_history
 
Str url_str
 
URLStream url_stream
 

Detailed Description

Simple Parser for HLS data. We select the entry with min bandwidth.

Author
Phil Schatzmann

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