Merge remote-tracking branch 'upstream/livekit' into SimonBrandner/feat/e2ee

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2023-07-25 16:00:12 +02:00
54 changed files with 1117 additions and 864 deletions

View File

@@ -3,6 +3,7 @@ import {
ExternalE2EEKeyProvider,
Room,
RoomOptions,
setLogLevel,
} from "livekit-client";
import { useLiveKitRoom } from "@livekit/components-react";
import { useEffect, useMemo } from "react";
@@ -17,7 +18,7 @@ export type UserChoices = {
};
export type DeviceChoices = {
selectedId: string;
selectedId?: string;
enabled: boolean;
};
@@ -25,6 +26,8 @@ export type E2EEConfig = {
sharedKey: string;
};
setLogLevel("debug");
export function useLiveKit(
userChoices: UserChoices,
sfuConfig?: SFUConfig,