Azure communication service does not support speaker enumeration in iPhone Safari.

Sharma, Ritika 60 Reputation points
2024-07-02T05:15:55.2833333+00:00

ACS app does not provide speaker enumeration in iPhone Safari browser. What is the workaround to resolve this?

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
785 questions
{count} votes

Accepted answer
  1. ajkuma 24,396 Reputation points Microsoft Employee
    2024-07-02T07:46:39.1866667+00:00

    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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful