From 91e8d559b9330fa64a1bf95eb57471a38ae5ceac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Mon, 10 Jul 2023 11:27:06 +0200 Subject: [PATCH] Support screen-sharing audio MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/room/InCallView.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/room/InCallView.tsx b/src/room/InCallView.tsx index 8262f34d..2425266d 100644 --- a/src/room/InCallView.tsx +++ b/src/room/InCallView.tsx @@ -341,7 +341,12 @@ export function InCallView({ const toggleScreensharing = useCallback(async () => { exitFullscreen(); - await localParticipant.setScreenShareEnabled(!isScreenShareEnabled); + await localParticipant.setScreenShareEnabled(!isScreenShareEnabled, { + audio: true, + selfBrowserSurface: "include", + surfaceSwitching: "include", + systemAudio: "include", + }); }, [localParticipant, isScreenShareEnabled, exitFullscreen]); let footer: JSX.Element | null;