muteLocalVideoStream abstract method

Future<void> muteLocalVideoStream(
  1. bool mute
)

Stops or resumes publishing the local video stream.

This method controls whether to publish the locally captured video stream. Not publishing the local video stream does not disable the video capture device, so it does not affect the video capture status. Compared to calling enableLocalVideo(false) to stop video capture and thus stop publishing, this method responds faster.

  • mute Whether to stop sending the local video stream. true : Stop sending the local video stream. false : (Default) Send the local video stream.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.

Implementation

Future<void> muteLocalVideoStream(bool mute);