startLocalAudio method Null safety

Future<void> startLocalAudio(
  1. int quality
)

Enable local audio capturing and upstreaming and set audio quality

This function will start mic capturing and transfer audio data to other users in the room. The SDK doesn't enable local audio capturing and upstreaming by default, and you need to call this function to enable it; otherwise, other users in the room cannot hear you.

The higher the sound quality of the anchor, the better the sound effect to the audience, but the higher the required bandwidth, so there may be lags if the bandwidth is limited.

Implementation

Future<void> startLocalAudio(int quality) {
  return _channel.invokeMethod('startLocalAudio', {"quality": quality});
}