addStreamProxy支持透传参数并设置MediaPlayer (#3063)

通过addStreamProxy接口可以直接配置MediaPlayer相关设置参数,比如说http代理url等
This commit is contained in:
alexliyu7352
2023-12-01 14:33:07 +08:00
committed by GitHub
parent a8e2d602cb
commit 86029d08af
5 changed files with 234 additions and 101 deletions

View File

@@ -301,7 +301,7 @@ static void pullStreamFromOrigin(const vector<string> &urls, size_t index, size_
option.enable_hls = option.enable_hls || (args.schema == HLS_SCHEMA);
option.enable_mp4 = false;
addStreamProxy(args.vhost, args.app, args.stream, url, retry_count, option, Rtsp::RTP_TCP, timeout_sec, [=](const SockException &ex, const string &key) mutable {
addStreamProxy(args.vhost, args.app, args.stream, url, retry_count, option, Rtsp::RTP_TCP, timeout_sec, mINI{}, [=](const SockException &ex, const string &key) mutable {
if (!ex) {
return;
}