@@ -77,11 +77,11 @@ export const SettingsModal = (props: Props) => {
7777 selectedKey = { audioInput }
7878 onSelectionChange = { setAudioInput }
7979 >
80- { audioInputs . map ( ( { deviceId, label } ) => (
80+ { audioInputs . map ( ( { deviceId, label } , index ) => (
8181 < Item key = { deviceId } >
8282 { ! ! label && label . trim ( ) . length > 0
8383 ? label
84- : "Default microphone" }
84+ : `Microphone ${ index + 1 } ` }
8585 </ Item >
8686 ) ) }
8787 </ SelectInput >
@@ -91,11 +91,11 @@ export const SettingsModal = (props: Props) => {
9191 selectedKey = { audioOutput }
9292 onSelectionChange = { setAudioOutput }
9393 >
94- { audioOutputs . map ( ( { deviceId, label } ) => (
94+ { audioOutputs . map ( ( { deviceId, label } , index ) => (
9595 < Item key = { deviceId } >
9696 { ! ! label && label . trim ( ) . length > 0
9797 ? label
98- : "Default speaker" }
98+ : `Speaker ${ index + 1 } ` }
9999 </ Item >
100100 ) ) }
101101 </ SelectInput >
@@ -126,9 +126,11 @@ export const SettingsModal = (props: Props) => {
126126 selectedKey = { videoInput }
127127 onSelectionChange = { setVideoInput }
128128 >
129- { videoInputs . map ( ( { deviceId, label } ) => (
129+ { videoInputs . map ( ( { deviceId, label } , index ) => (
130130 < Item key = { deviceId } >
131- { ! ! label && label . trim ( ) . length > 0 ? label : "Default camera" }
131+ { ! ! label && label . trim ( ) . length > 0
132+ ? label
133+ : `Camera ${ index + 1 } ` }
132134 </ Item >
133135 ) ) }
134136 </ SelectInput >
0 commit comments