Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Device selection now always shows the device that it managed to open. (#4384)

Дамян Минков9c1b80299772
diff --git a/react/features/device-selection/components/DeviceSelection.js b/react/features/device-selection/components/DeviceSelection.js
index 20bec7818c..487e1c5914 100644
--- a/react/features/device-selection/components/DeviceSelection.js
+++ b/react/features/device-selection/components/DeviceSelection.js
@@ -372,7 +372,8 @@ class DeviceSelection extends AbstractDialogTab<Props, State> {
label: 'settings.selectCamera',
onSelect: selectedVideoInputId =>
super._onChange({ selectedVideoInputId }),
- selectedDeviceId: this.props.selectedVideoInputId
+ selectedDeviceId: this.state.previewVideoTrack
+ ? this.state.previewVideoTrack.getDeviceId() : null
},
{
devices: availableDevices.audioInput,
@@ -384,7 +385,8 @@ class DeviceSelection extends AbstractDialogTab<Props, State> {
label: 'settings.selectMic',
onSelect: selectedAudioInputId =>
super._onChange({ selectedAudioInputId }),
- selectedDeviceId: this.props.selectedAudioInputId
+ selectedDeviceId: this.state.previewAudioTrack
+ ? this.state.previewAudioTrack.getDeviceId() : null
}
];