Hack e2ee in

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2023-07-12 17:50:07 +02:00
parent 89c326f0bb
commit 8946af8f4e
3 changed files with 16 additions and 1 deletions

View File

@@ -32,12 +32,14 @@ export function useLiveKit(
return options;
}, [userChoices.video, userChoices.audio]);
const roomWithoutProps = useMemo(() => new Room(roomOptions), [roomOptions]);
const { room } = useLiveKitRoom({
token: sfuConfig?.jwt,
serverUrl: sfuConfig?.url,
audio: userChoices.audio?.enabled ?? false,
video: userChoices.video?.enabled ?? false,
options: roomOptions,
room: roomWithoutProps,
});
return room;