diff --git a/apps/meteor/client/providers/DeviceProvider/DeviceProvider.tsx b/apps/meteor/client/providers/DeviceProvider/DeviceProvider.tsx index afa2e2b236d..dc264c12a36 100644 --- a/apps/meteor/client/providers/DeviceProvider/DeviceProvider.tsx +++ b/apps/meteor/client/providers/DeviceProvider/DeviceProvider.tsx @@ -70,9 +70,12 @@ export const DeviceProvider = ({ children }: DeviceProviderProps): ReactElement type: device.kind, })); - const audioInput = mappedDevices.filter((device) => device.type === 'audioinput'); + const filteredInput = mappedDevices.filter((device) => device.type === 'audioinput'); - const audioOutput = mappedDevices.filter((device) => device.type === 'audiooutput'); + const filteredOutput = mappedDevices.filter((device) => device.type === 'audiooutput'); + + const audioInput = filteredInput.length > 0 ? filteredInput : [defaultDevices.defaultAudioInputDevice]; + const audioOutput = filteredOutput.length > 0 ? filteredOutput : [defaultDevices.defaultAudioOutputDevice]; return { audioInput,