Closed jaydgoss closed 3 years ago
you can use muteLocalAudioStream or muteRemoteAuduoStream API to control it.
I did try this but found that when using .muteLocalAudioStream(false)
, LocalAudioStateChanged
would never update to recording or encoding. I'll try again to get more details.
This was due to the audio profile scenario being set to AudioScenario.GameStreaming
.
When using the method
setClientRole
to toggle betweenClientRole.Broadcaster
andClientRole.Audience
there is a brief pause in audio from the stream while the OS appears to switch between recording and publishing, to not recording and just consuming.Is there an alternate method to switch between broadcasting <=> consuming, or an additional parameter I can configure to prevent this momentary lapse in audio from the stream?
Using react-native-agora v3.3.3.