muteLocalVideoStream abstract method

Future<void> muteLocalVideoStream(
  1. bool muted
)

Stops or resumes publishing the local video stream. A successful call of this method triggers the userMuteVideo 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. You can call this method either before or after joining a channel. If you call setChannelProfile after this method, the SDK resets whether or not to stop publishing the local video according to the channel profile and user role. Therefore, Agora recommends calling this method after the setChannelProfile method.

Param muted Whether to stop publishing the local video stream. true: Stop publishing the local video stream. false: (Default) Publish the local video stream.

Implementation

Future<void> muteLocalVideoStream(bool muted);