X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=config.h;h=b5461cceae1f0978cce52d53a82de1b2cca95655;hp=4d78a37caa76ae2313925c4da92e1bdf1155bc21;hb=6a647d84c4a76fba4f91fcb75ab8185dc7628d67;hpb=16a03b9858752fae9e81af261821a2a22855fde3 diff --git a/config.h b/config.h index 4d78a37..b5461cc 100644 --- a/config.h +++ b/config.h @@ -11,6 +11,7 @@ struct StreamConfig { std::string url; // As seen by the client. + std::string hls_url; // As seen by the client. Can be empty. std::string src; // Can be empty. size_t backlog_size; size_t prebuffering_bytes; @@ -18,6 +19,11 @@ struct StreamConfig { enum Encoding { STREAM_ENCODING_RAW = 0, STREAM_ENCODING_METACUBE }; Encoding encoding; Encoding src_encoding; + std::string allow_origin; + + // These only matter if hls_url is nonempty. + int hls_frag_duration = 6; // Apple recommendation (“HLS Authoring Specification for Apple Devices”, point 7.5). + size_t hls_backlog_margin = 0; }; struct UDPStreamConfig {