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:
parent
6dc86b8a2e
commit
2c569f568c
4 changed files with 32 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue