// HLS client: playlists, variant choice, live segment loop. Segment bytes go to a sink callback. #pragma once #include #include #include #include "esp_err.h" // Receives segment data in chunks (MPEG-TS etc.). Return false to abort the segment. typedef bool (*hls_sink_t)(const uint8_t *data, size_t len, bool segment_start); esp_err_t hls_start(hls_sink_t sink);