From 2049df6d1a1eb7f511e0fb9e07d9ae568690bc27 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 27 Aug 2026 22:53:15 +0800 Subject: [PATCH] =?UTF-8?q?webrtc=20whip=E6=8B=89=E6=B5=81=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E7=9B=B4=E6=8E=A5=E4=BB=A3=E7=90=86=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Player/PlayerProxy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Player/PlayerProxy.cpp b/src/Player/PlayerProxy.cpp index 05497df9..b888d441 100644 --- a/src/Player/PlayerProxy.cpp +++ b/src/Player/PlayerProxy.cpp @@ -16,6 +16,7 @@ #include "Rtmp/RtmpPlayer.h" #include "Rtsp/RtspMediaSource.h" #include "Rtsp/RtspPlayer.h" +#include "webrtc/WebRtcProxyPlayer.h" #include "Util/MD5.h" #include "Util/logger.h" #include "Util/mini.h" @@ -279,7 +280,7 @@ void PlayerProxy::play(const string &url) { void PlayerProxy::setDirectProxy() { MediaSource::Ptr mediaSource; - if (dynamic_pointer_cast(_delegate)) { + if (dynamic_pointer_cast(_delegate) || dynamic_pointer_cast(_delegate)) { // rtsp拉流 [AUTO-TRANSLATED:189cf691] // Rtsp stream GET_CONFIG(bool, directProxy, Rtsp::kDirectProxy);