Setting_GetSpeakerList only returns 1 device

Description
Setting_GetSpeakerList function has a bug and only returns 1 speaker instead of all speakers.

Which version?
v5.2.41762.1027

To Reproduce(If applicable)
Steps to reproduce the behavior:

const zoomSettingAudio = zoomsetting.GetAudioSetting();
const speakerDevices = zoomSettingAudio.Setting_GetSpeakerList();
console.log('Speaker devices:', speakerDevices);

Returns while there are 3 speakers outputs:
Speaker devices: {
deviceName: ‘Headphones (DENON AH-GC20 Stereo)’,
deviceId: ‘{0.0.0.00000000}.{aaafb99b-fd0a-43b1-967f-498d800fc35a}’,
isSelected: false
}

Smartphone (please complete the following information):

  • Device: Dell
  • OS: Windows 10

We have found the bug in the sdk.
The function has to use a map function instead of forEach

const mappedSpeakerList = speakerList.map(item => ({
  deviceName: item.deviceName,
  deviceId: item.deviceId,
  isSelected: item.isSelected
}));

Hope you will fix this issue in the next release. Same is the case for microphone and video devices.