enableAudioSend method

FutureOr<int> enableAudioSend(
  1. boolean enable
)

@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

FutureOr<int> enableAudioSend(boolean enable) async {
  return await nativeCall('enableAudioSend', [enable]);
}