stopPreview method

Future<void> stopPreview(
  1. {ZegoPublishChannel? channel}
)

Stops the local preview (for the specified channel).

Available since: 1.1.0 Description: This function can be called to stop the preview when the preview is not needed locally. Caution: Stopping the preview will not affect the publish stream and playing stream functions. Note: This function is only available in ZegoExpressVideo SDK!

  • channel Publish stream channel

Implementation

Future<void> stopPreview({ZegoPublishChannel? channel}) async {
  return await ZegoExpressImpl.instance.stopPreview(channel: channel);
}