]> git.sesse.net Git - cubemap/blobdiff - client.h
Add support for serving HLS playlists.
[cubemap] / client.h
index 8f9f682e268e291935278f91cedda3257dc1bae5..f2bd7fb54bc4e73ae0cbb174d6ba8ddea10eec2a 100644 (file)
--- a/client.h
+++ b/client.h
@@ -62,6 +62,9 @@ struct Client {
        std::string url;
        Stream *stream = nullptr;
 
+       // If true, we don't actually serve the stream, but its HLS playlist.
+       bool serving_hls_playlist = false;
+
        // Whether we should close the connection after sending the response.
        // Not relevant for READING_REQUEST. Must be true if http_11 is false.
        bool close_after_response;