muteAudioCapture method
@valid since 3.58.1
@detail api
@author shiyayun
@brief Set whether to mute the recording signal (without changing the local hardware).
@param mute Whether to mute audio capture.
- True: Mute (disable microphone)
- False: (Default) Enable microphone
@return
- 0: Success.
- < 0 : Failure. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details.
@note
- Calling this API does not affect the status of SDK audio stream publishing.
- Adjusting the volume by calling setCaptureVolume:{@link #ByteRTCEngine#setCaptureVolume} after muting will not cancel the mute state. The volume state will be retained until unmuted.
- You can use this interface to set the capture volume before or after calling startAudioCapture{@link #ByteRTCEngine#startAudioCapture} to enable audio capture.
Implementation
FutureOr<int> muteAudioCapture(bool mute) async {
return await nativeCall('muteAudioCapture:', [mute]);
}