mutePublishStreamVideo method

Future<void> mutePublishStreamVideo(
  1. bool mute,
  2. {ZegoPublishChannel? channel}
)

Stops or resumes sending the video part of a stream for the specified channel.

Available since: 1.1.0 Description: This function can be called when publishing the stream to realize not publishing the video stream. The local camera can still work normally, can capture, preview and process video images normally, but does not send the video data to the network. When to call: Called after the engine is created createEngine can take effect. Restrictions: None. Related callbacks: If you stop sending video streams locally, the remote user that play stream of local user publishing stream can receive Mute status change notification by monitoring onRemoteCameraStateUpdate callbacks. Related APIs: mutePublishStreamAudio. Note: This function is only available in ZegoExpressVideo SDK!

  • mute Whether to stop sending video streams, true means not to send video stream, and false means sending video stream. The default is false.
  • channel Publish stream channel.

Implementation

Future<void> mutePublishStreamVideo(bool mute,
    {ZegoPublishChannel? channel}) async {
  return await ZegoExpressImpl.instance
      .mutePublishStreamVideo(mute, channel: channel);
}