Skip to content

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

fix(device-selection): Update redux when a new speaker is selected Update userSelectedAudioOutputDeviceId and userSelectedAudioOutputDeviceLabel when a new speaker is selected from the audio settings popup menu

Jaya Allamsetty45570bc0e7d1
diff --git a/react/features/base/devices/actions.js b/react/features/base/devices/actions.js
index b5fc88573e..3a8c358db3 100644
--- a/react/features/base/devices/actions.js
+++ b/react/features/base/devices/actions.js
@@ -243,8 +243,10 @@ export function setAudioInputDeviceAndUpdateSettings(deviceId) {
* @returns {Function}
*/
export function setAudioOutputDevice(deviceId) {
- return function(dispatch) {
- return setAudioOutputDeviceId(deviceId, dispatch);
+ return function(dispatch, getState) {
+ const deviceLabel = getDeviceLabelById(getState(), deviceId, 'audioOutput');
+
+ return setAudioOutputDeviceId(deviceId, dispatch, true, deviceLabel);
};
}