From afea014b3a333de7f945a10230207dfefe36b608 Mon Sep 17 00:00:00 2001 From: mmc <1556375442@qq.com> Date: Wed, 3 Jun 2026 16:16:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E4=BA=BA=E6=9C=BA=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=8A=A0key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AgoraRtc.tsx | 3 ++- src/components/VolcRtcPlayer.jsx | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/AgoraRtc.tsx b/src/components/AgoraRtc.tsx index 5503a0b..b7bbddd 100644 --- a/src/components/AgoraRtc.tsx +++ b/src/components/AgoraRtc.tsx @@ -38,7 +38,7 @@ const parseUrlParams = (url) => { }; }; -export default function AgoraRtcRoom({ url = "" }) { +export default function AgoraRtcRoom({ url = "", key }) { const { appId, channel, token, uid } = parseUrlParams(url); @@ -277,6 +277,7 @@ export default function AgoraRtcRoom({ url = "" }) { width: "100%", height: '100%' }} + key={key} > diff --git a/src/components/VolcRtcPlayer.jsx b/src/components/VolcRtcPlayer.jsx index 3e4de07..107eedd 100644 --- a/src/components/VolcRtcPlayer.jsx +++ b/src/components/VolcRtcPlayer.jsx @@ -5,6 +5,7 @@ import { DroneRTC } from "./droneplayer"; export default function DroneLivePlayer({ streamData, videoMode = "NORMAL", + key }) { const containerRef = useRef(null); const rtcRef = useRef(null); @@ -82,6 +83,7 @@ export default function DroneLivePlayer({ return (