From e63b3d1b3e9007346197560583f552d41dcf718f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Sat, 16 Jul 2022 09:08:38 +0200 Subject: [PATCH] Add support for audio sharing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/room/useGroupCall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/room/useGroupCall.ts b/src/room/useGroupCall.ts index b3697cc..49979a5 100644 --- a/src/room/useGroupCall.ts +++ b/src/room/useGroupCall.ts @@ -302,7 +302,7 @@ export function useGroupCall(groupCall: GroupCall): UseGroupCallType { const toggleScreensharing = useCallback(() => { updateState({ requestingScreenshare: true }); - groupCall.setScreensharingEnabled(!groupCall.isScreensharing()).then(() => { + groupCall.setScreensharingEnabled(!groupCall.isScreensharing(), { audio: true }).then(() => { updateState({ requestingScreenshare: false }); }); }, [groupCall]);