@@ -4,7 +4,7 @@ import {
|
|||||||
LocalVideoTrack,
|
LocalVideoTrack,
|
||||||
Room,
|
Room,
|
||||||
} from "livekit-client";
|
} from "livekit-client";
|
||||||
import React, { useEffect } from "react";
|
import React from "react";
|
||||||
import {
|
import {
|
||||||
useMediaDeviceSelect,
|
useMediaDeviceSelect,
|
||||||
usePreviewDevice,
|
usePreviewDevice,
|
||||||
@@ -59,7 +59,7 @@ export function useLiveKit(): LiveKitState | undefined {
|
|||||||
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
// }, []);
|
// }, []);
|
||||||
|
|
||||||
// then start the preview device (no permsission should be triggered agian)
|
// then start the preview device (no permission should be triggered agian)
|
||||||
// Create local video track.
|
// Create local video track.
|
||||||
const video = usePreviewDevice(
|
const video = usePreviewDevice(
|
||||||
videoEnabled,
|
videoEnabled,
|
||||||
|
|||||||
Reference in New Issue
Block a user