From 4f3fca33e9d4ef0125fea20ee999f72491f760b2 Mon Sep 17 00:00:00 2001 From: "shenxiaojie.316" Date: Fri, 30 Jan 2026 19:09:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/main/player.tsx | 20 +++++++++++++++++++ .../src/utils/local-manager.ts | 1 + 2 files changed, 21 insertions(+) diff --git a/examples/realtime-console/src/pages/main/player.tsx b/examples/realtime-console/src/pages/main/player.tsx index abc1e8ac..b830d486 100644 --- a/examples/realtime-console/src/pages/main/player.tsx +++ b/examples/realtime-console/src/pages/main/player.tsx @@ -16,6 +16,17 @@ const Player: React.FC<{ }; const videoState = localManager.get(LocalStorageKey.VIDEO_STATE); + const handleToggleVideoMirror = (e: CheckboxChangeEvent) => { + clientRef.current + ?.getRtcEngine() + ?.setLocalVideoMirrorType(e.target.checked ? 1 : 0); + + localManager.set( + LocalStorageKey.VIDEO_MIRROR_STATE, + e.target.checked.toString(), + ); + }; + return (
{' '} Video +