muteLocalVideoStreamEx abstract method

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

Stops or resumes publishing the local video stream.

After this method is successfully called, the remote user receives the onUserMuteVideo callback. This method does not affect the video capture state and does not disable the camera.

  • mute Whether to stop sending the local video stream. true : Stop sending the local video stream. false : (Default) Send the local video stream.
  • connection 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. See Error Codes for details and resolution suggestions.

Implementation

Future<void> muteLocalVideoStreamEx(
    {required bool mute, required RtcConnection connection});