Fix LiveKit's device selection during the call

This commit is contained in:
Daniel Abramov
2023-06-02 19:55:41 +02:00
parent 991129e470
commit b1d7631994
3 changed files with 60 additions and 153 deletions

View File

@@ -58,7 +58,7 @@ export const SettingsModal = (props: Props) => {
// Generate a `SelectInput` with a list of devices for a given device kind.
const generateDeviceSelection = (kind: MediaDeviceKind, caption: string) => {
const devices = props.mediaDevices.state.get(kind);
if (!devices) return null;
if (!devices || devices.available.length == 0) return null;
return (
<SelectInput