muteLocalVideoStream method Null safety

Future<void> muteLocalVideoStream(
  1. bool muted
)

Stops/Resumes sending the local video stream.

A successful muteLocalVideoStream method call triggers the RtcEngineEventHandler.userMuteVideo callback on the remote client.

Note

  • When you set muted as true, this method does not disable the camera and thus does not affect the retrieval of the local video streams. This method responds faster than calling the RtcEngine.enableLocalVideo method and set muted as false, which controls sending the local video stream.
  • If you call RtcEngine.setChannelProfile after this method, the SDK resets whether or not to mute the local video according to the channel profile and user role. Therefore, we recommend calling this method after the RtcEngine.setChannelProfile method.

Parameter muted Sets whether to send/stop sending the local video stream:

  • true: Stop sending the local video stream.
  • false: (Default) Send the local video stream.

Implementation

@override
Future<void> muteLocalVideoStream(bool muted) {
  return _invokeMethod('muteLocalVideoStream', {
    'muted': muted,
  });
}