muteScreenAudioCapture method

FutureOr<int> muteScreenAudioCapture(
  1. bool mute
)

@valid since 3.60. @detail api @author shiyayun @brief Mutes or unmutes the audio captured when screen sharing.
Calling this method will send muted data instead of the screen audio data, and it does not affect the local audio device capture status and the SDK audio stream publishing status. @param mute Whether to mute the audio capture when screen sharing.
- True: Mute the audio capture when screen sharing.
- False: (Default) Unmute the audio capture when screen sharing. @return - 0: Success. - < 0: Failure. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details. @note - 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> muteScreenAudioCapture(bool mute) async {
  return await nativeCall('muteScreenAudioCapture:', [mute]);
}