react-native-twilio-video-webrtc
react-native-twilio-video-webrtc copied to clipboard
Issue with remote audio on Android when a new participant joins
Steps to reproduce
- Start a session on android
- 2 or more participants should join
- 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]
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?
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.

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?