createPictureCapturer method

Future<ZegoPictureCapturer?> createPictureCapturer()

Create picture capturer instance.

Available since: 3.22.0 Description: Creates a picture capturer instance. Use case: Often used in pushing static images. When to call: It can be called after the SDK by createEngine has been initialized. Restrictions: None. Related APIs: User can call destroyPictureCapturer function to destroy a picture capturer instance. Use setVideoSource to set the picture capturer as the push stream video source.

  • Returns Picture capturer instance.

Implementation

Future<ZegoPictureCapturer?> createPictureCapturer() async {
  return await ZegoExpressImpl.instance.createPictureCapturer();
}