muteLocalVideoStreamEx abstract method

Future<void> muteLocalVideoStreamEx({
  1. required bool mute,
  2. required RtcConnection connection,
})

Stops or resumes publishing the local video stream.

A successful call of this method triggers the onUserMuteVideo callback on the remote client. 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.
  • connection The connection information. See RtcConnection.

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> muteLocalVideoStreamEx(
    {required bool mute, required RtcConnection connection});