mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-18 18:59:23 +00:00
@@ -68,7 +68,8 @@ export const VideoPreview: FC<Props> = ({
|
|||||||
deviceId: devices.audioInput.selectedId,
|
deviceId: devices.audioInput.selectedId,
|
||||||
};
|
};
|
||||||
|
|
||||||
const localTrackOptions = useMemo(() => ({
|
const localTrackOptions = useMemo(
|
||||||
|
() => ({
|
||||||
// The only reason we request audio here is to get the audio permission
|
// The only reason we request audio here is to get the audio permission
|
||||||
// request over with at the same time. But changing the audio settings
|
// request over with at the same time. But changing the audio settings
|
||||||
// shouldn't cause this hook to recreate the track, which is why we
|
// shouldn't cause this hook to recreate the track, which is why we
|
||||||
@@ -79,8 +80,9 @@ export const VideoPreview: FC<Props> = ({
|
|||||||
video: muteStates.video.enabled && {
|
video: muteStates.video.enabled && {
|
||||||
deviceId: devices.videoInput.selectedId,
|
deviceId: devices.videoInput.selectedId,
|
||||||
},
|
},
|
||||||
};
|
}),
|
||||||
}, [devices.videoInput.selectedId, muteStates.video.enabled]);
|
[devices.videoInput.selectedId, muteStates.video.enabled],
|
||||||
|
);
|
||||||
|
|
||||||
const onError = useCallback(
|
const onError = useCallback(
|
||||||
(error: Error) => {
|
(error: Error) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user