setCameraZoomFactor method

Future<void> setCameraZoomFactor(
  1. double factor,
  2. {ZegoPublishChannel? channel}
)

Set the zoom factor of the camera and support specifying the publish channel. Every time the camera is restarted, the camera zoom factor will return to the initial value (1.0).

Available since: 1.20.0 Description: Set the camera zoom factor. Every time the camera is restarted, the camera zoom factor will be restored to its initial value. When to call: After creating the engine createEngine. Restrictions: The settings will not take effect until the camera is started. Note: This function is only available in ZegoExpressVideo SDK!

  • factor The zoom factor of the camera, the minimum value is 1.0, and the maximum value is the return value of getCameraMaxZoomFactor.
  • channel Publishing stream channel

Implementation

Future<void> setCameraZoomFactor(double factor,
    {ZegoPublishChannel? channel}) async {
  return await ZegoExpressImpl.instance
      .setCameraZoomFactor(factor, channel: channel);
}