android_enableAudioSend method
@platform android
@detail api
@author luomingkang
@brief Starts or stops sending audio streams. Calling this interface does not affect audio capture. Other users in the same room will receive the corresponding callback.
@param enable Whether to send the saudio data:
- true: Starts sending audio data.
- false: Default setting. Stops sending audio data.
@return
- 0: It means that the parameter check has passed, but it does not mean that opening the microphone will succeed. For example, the room does not exist.
- -3: Failure. Not joined a room.
@note Cannot be called at the same time as EnableMicrophone{@link #IGameRoom#EnableMicrophone}.
Implementation
Future<int?> android_enableAudioSend(bool enable) async {
$() => ($instance as $p_a.RTCRoom).enableAudioSend(enable);
if (Platform.isAndroid) {
return $();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}