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 (