Sharma, Ritika, Thanks for posting this question.
Yes, iOS Safari don't support speaker enumeration.
Depending on the issue that you are experiencing - if you are seeing an issue/scenario where a user doesn't have any audio output device -- the DeviceManager.getSpeakers
API only returns an empty array, indicating that there's no available audio output device in the user's system.
If you haven't checked, for the platform that doesn't support speaker enumeration, you may get an error when calling DeviceManager.getSpeakers
API.
I have also relayed the feedback internally to our product engineering team.
Mitigation steps to overcome this specific issue:
The application should always call the DeviceManager.askDevicePermission
API to ensure that the required permissions are granted. If the user doesn't grant the microphone permission, the application should show a warning on its user interface, so the user knows that they aren't able to see the speaker device list.
The application should also check whether the speaker list is empty or handle the error when calling DeviceManager.getSpeakers
API, and show a warning accordingly. Additionally, the application should listen to the noSpeakerDevicesEnumerated
event and show a message when there are no available speaker devices.
If the answer helped (pointed, you in the right direction) > please click Accept Answer