setCapturePipelineScaleMode method

Future<void> setCapturePipelineScaleMode(
  1. ZegoCapturePipelineScaleMode mode
)

Sets the timing of video scaling in the video capture workflow. You can choose to do video scaling right after video capture (the default value) or before encoding.

Available since: 1.1.0 When to call: This function needs to be set before call startPreview or startPublishingStream. Caution: The main effect is Whether the local preview is affected when the acquisition resolution is different from the encoding resolution. Note: This function is only available in ZegoExpressVideo SDK!

  • mode The capture scale timing mode.

Implementation

Future<void> setCapturePipelineScaleMode(
    ZegoCapturePipelineScaleMode mode) async {
  return await ZegoExpressImpl.instance.setCapturePipelineScaleMode(mode);
}