X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=config.h;h=b5461cceae1f0978cce52d53a82de1b2cca95655;hp=2e052876cd0a43e3bfa381c4db385dcc0a77abc2;hb=d34b94a858c08d64eddfb9c115719fd9129be933;hpb=bd5882e9ab6c9c4f280a5eb5ca24da2d5275d756 diff --git a/config.h b/config.h index 2e05287..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 { @@ -35,6 +41,8 @@ struct Gen204Config { struct AcceptorConfig { sockaddr_in6 addr; + + std::string certificate_chain, private_key; // In PEM format. }; struct LogConfig {