溯源集群模式支持边沿服务器选择开启转hls: #1588

This commit is contained in:
xiongziliang 2022-04-23 18:40:20 +08:00
parent c31d44d680
commit 5e729d6153

View File

@ -245,7 +245,7 @@ static void pullStreamFromOrigin(const vector<string>& urls, size_t index, size_
InfoL << "pull stream from origin, failed_cnt: " << failed_cnt << ", timeout_sec: " << timeout_sec << ", url: " << url; InfoL << "pull stream from origin, failed_cnt: " << failed_cnt << ", timeout_sec: " << timeout_sec << ", url: " << url;
ProtocolOption option; ProtocolOption option;
option.enable_hls = args._schema == HLS_SCHEMA; option.enable_hls = option.enable_hls || (args._schema == HLS_SCHEMA);
option.enable_mp4 = false; option.enable_mp4 = false;
addStreamProxy(args._vhost, args._app, args._streamid, url, -1, option, Rtsp::RTP_TCP, timeout_sec, addStreamProxy(args._vhost, args._app, args._streamid, url, -1, option, Rtsp::RTP_TCP, timeout_sec,