react-native-twilio-video-webrtc icon indicating copy to clipboard operation
react-native-twilio-video-webrtc copied to clipboard

Issue with remote audio on Android when a new participant joins

Open rahulbaroqoe opened this issue 4 years ago • 3 comments

Steps to reproduce

  1. Start a session on android
  2. 2 or more participants should join
  3. The already present participant can not hear anythingng

Expected behaviour

Remote Audio should be enabled

Actual behaviour

Remote audio becomes silent, the participant is not able to hear anything until they toggle remote audio.

Environment

  • Node.js version: v14.16.0
  • React Native version: 0.64.0
  • React Native platform + platform version: android

react-native-twilio-video-webrtc

Version: npm version or "master": master || [email protected]

rahulbaroqoe avatar Apr 24 '21 18:04 rahulbaroqoe

So just so I understand this a little more clearly:

  • Participant A connects to room.
  • Participant B connects to room. Participant A cannot hear Participant B.
  • Participant B toggles their audio stream (twice). Participant A can now hear Participant B.

Is that right?

slycoder avatar May 10 '21 01:05 slycoder

Ya, participant B however joins with enableAudio flag set to false in connect params.

We did some digging and found enableRemoteAudio being set using enableAudio as opposed to enableRemoteAudio. Wanted to understand the purpose of enableRemoteAudio, assuming enableAudio is used to set the state for device mic.

image

rahulbaroqoe avatar May 10 '21 15:05 rahulbaroqoe

Oh, you're totally right, enableAudio triggers both behaviors right now. I think the right thing to do would be to have separate flags to playRemoteAudio and enableLocalAudio. Would that solve the problem for your use case?

slycoder avatar May 16 '21 00:05 slycoder