mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 08:56:39 +00:00
refac
This commit is contained in:
parent
dfc2fb65af
commit
508e8eb4b1
@ -8,6 +8,7 @@
|
||||
|
||||
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
||||
import VideoInputMenu from './CallOverlay/VideoInputMenu.svelte';
|
||||
import { get } from 'svelte/store';
|
||||
|
||||
const i18n = getContext('i18n');
|
||||
|
||||
@ -364,8 +365,11 @@
|
||||
});
|
||||
}
|
||||
|
||||
video.srcObject = cameraStream;
|
||||
await video.play();
|
||||
if (cameraStream) {
|
||||
await getVideoInputDevices();
|
||||
video.srcObject = cameraStream;
|
||||
await video.play();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user