X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=config.h;fp=config.h;h=11907db342869711fdc7a8d57d594159792772fb;hp=4d78a37caa76ae2313925c4da92e1bdf1155bc21;hb=20e85bd6901355cc40a6cfb4c0deb7232d9aa63f;hpb=061988af511f42da3cd584b4d983177504ddc177 diff --git a/config.h b/config.h index 4d78a37..11907db 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). + int hls_backlog_margin = 0; }; struct UDPStreamConfig {