File tree Expand file tree Collapse file tree
apps/meteor/client/providers/DeviceProvider Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,9 +70,12 @@ export const DeviceProvider = ({ children }: DeviceProviderProps): ReactElement
7070 type : device . kind ,
7171 } ) ) ;
7272
73- const audioInput = mappedDevices . filter ( ( device ) => device . type === 'audioinput' ) ;
73+ const filteredInput = mappedDevices . filter ( ( device ) => device . type === 'audioinput' ) ;
7474
75- const audioOutput = mappedDevices . filter ( ( device ) => device . type === 'audiooutput' ) ;
75+ const filteredOutput = mappedDevices . filter ( ( device ) => device . type === 'audiooutput' ) ;
76+
77+ const audioInput = filteredInput . length > 0 ? filteredInput : [ defaultDevices . defaultAudioInputDevice ] ;
78+ const audioOutput = filteredOutput . length > 0 ? filteredOutput : [ defaultDevices . defaultAudioOutputDevice ] ;
7679
7780 return {
7881 audioInput,
You can’t perform that action at this time.
0 commit comments