status: hls download stats (last segment speed, failed requests, last error)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "cJSON.h"
|
||||
#include "esp_err.h"
|
||||
|
||||
// Receives segment data in chunks (MPEG-TS etc.). Return false to abort the segment.
|
||||
@@ -13,6 +14,8 @@ typedef bool (*hls_sink_t)(const uint8_t *data, size_t len, bool segment_start);
|
||||
#define HLS_URL_MAX 384
|
||||
|
||||
esp_err_t hls_start(hls_sink_t sink);
|
||||
// Adds status.hls: last segment download (bytes, ms, Mbit/s incl. connect + TLS), failed requests.
|
||||
void hls_status(cJSON *st);
|
||||
// The playlist URL to play ("" = none). A different URL restarts fetching with it.
|
||||
void hls_set_url(const char *url);
|
||||
// Stop fetching (current download is abandoned) until resumed. Reasons are independent:
|
||||
|
||||
Reference in New Issue
Block a user