enableAudioSend method
@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: Success.
- -3: Failure. Not joined a room.
@note Cannot be called simultaneously with enableMicrophone:{@link #ByteRTCGameRoom#enableMicrophone}.
Implementation
FutureOr<int> enableAudioSend(BOOL enable) async {
return await nativeCall('enableAudioSend:', [enable]);
}