muteLocalVideoStream abstract method

Future<void> muteLocalVideoStream(
  1. bool mute
)

Stops or resumes publishing the local video stream.

A successful call of this method triggers the onUserMuteVideo callback on the remote client. This method executes faster than the enableLocalVideo (false) method, which controls the sending of the local video stream. This method does not affect any ongoing video recording, because it does not disable the camera.

  • mute Whether to stop publishing the local video stream. true : Stop publishing the local video stream. false : (Default) Publish 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.

Implementation

Future<void> muteLocalVideoStream(bool mute);