Blocking microphone permissions is impacting remote user audio

Description
If microphone permissions are blocked I’m not able to hear remote users as well. Why is my microphone permission impacting remote user’s audio? This is reproducible in this demo as well. If permissions are blocked, remote user’s are not audible. If permissions are unset, I can hear audio till I block them. I’m able to hear audio when I click on start Audio, and get browser’s permission popup. As soon as the microphone is blocked, remote user’s audio is blocked as well.

Browser Console Error
{type: ‘INSUFFICIENT_PRIVILEGES’, reason: ‘USER_FORBIDDEN_MICROPHONE’}

Which Web Video SDK version?
Video SDK- 1.5.5

Video SDK Code Snippets

const startAudio = useCallback(async () => {
    if (isSafari) {
      if (audioDecode.current && audioEncode.current) {
        await zmStream.current.startAudio();
        isAudioStarted.current = true;
      } 
    } else {
      await zmStream.current.startAudio();
      isAudioStarted.current = true;
    }
  }, [isSafari]);

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

  1. Go to demo link in issue description.
  2. Block microphone permissions for one user.
  3. Join meeting with more than 1 participant.
  4. Click on StartAudio where mic permissions were blocked.
  5. Other participants’ audio will not be audible.

Screenshots
NA

Troubleshooting Routes
NA

Device (please complete the following information):

  • Device: MacBook Pro
  • OS:12.2.1 (21D62)
  • Browser: Chrome
  • Browser Version: 109.0.5414.119 (Official Build) (arm64)

Additional context
NA

@sprinklrqa4 ,

In your startAudio, try to add in the audioOption parameter

zmStream.startAudio({speakerOnly:true});

The above code should allow a user to listen to remote user, without providing microphone access to their browser.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.