1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

HLS: Support config hls_ctx to disable HLS streaming.

This commit is contained in:
ChenHaibo 2022-06-15 17:38:37 +08:00 committed by winlin
parent 6dc86b8a2e
commit 2c569f568c
4 changed files with 32 additions and 1 deletions

View file

@ -202,6 +202,10 @@ srs_error_t SrsVodStream::serve_m3u8_ctx(ISrsHttpResponseWriter * w, ISrsHttpMes
}
SrsAutoFree(SrsRequest, req);
if (!_srs_config->get_hls_ctx_enabled(req->vhost)) {
return SrsHttpFileServer::serve_m3u8_ctx(w, r, fullpath);
}
string ctx = hr->query_get(SRS_CONTEXT_IN_HLS);
if (!ctx.empty() && ctx_is_exist(ctx)) {