修复addStreamProxy拉流代理同协议下开关问题 (#3779 #3770)

This commit is contained in:
xiongguangjie 2024-08-02 21:32:32 +08:00 committed by GitHub
parent e3cad7f8fa
commit 47b8435d7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -191,13 +191,13 @@ void PlayerProxy::setDirectProxy() {
if (dynamic_pointer_cast<RtspPlayer>(_delegate)) {
// rtsp拉流
GET_CONFIG(bool, directProxy, Rtsp::kDirectProxy);
if (directProxy) {
if (directProxy && _option.enable_rtsp) {
mediaSource = std::make_shared<RtspMediaSource>(_tuple);
}
} else if (dynamic_pointer_cast<RtmpPlayer>(_delegate)) {
// rtmp拉流
GET_CONFIG(bool, directProxy, Rtmp::kDirectProxy);
if (directProxy) {
if (directProxy && _option.enable_rtmp) {
mediaSource = std::make_shared<RtmpMediaSource>(_tuple);
}
}