startEffectsEnv method

Future<void> startEffectsEnv()

Enable the Effects beauty environment.

Available since: 2.16.0 Description: Enable the Effects beauty environment. The SDK uses the specified video frame data type for transmission. The Windows platform only supports video frame raw data, the Apple platform only supports CVPixelBuffer, and the Android platform only supports texture2d. Use cases: It is often used in scenes such as video calls and live broadcasts. Default value: When this function is not called, the beauty environment is not activated by default. When to call: Must be called before calling startPreview, startPublishingStream. If you need to modify the configuration, please call logoutRoom to log out of the room first, otherwise it will not take effect. Related APIs: enableEffectsBeauty switch beauty, setEffectsBeautyParam set beauty parameters. Caution: This beauty function is the basic function. If it does not meet the expectations of the developer, you can use the custom video pre-processing function enableCustomVideoProcessing or the custom video capture function enableCustomVideoCapture docking and constructing the AI ​​Effects SDK ZegoEffects https://doc-zh.zego.im/article/9556 for best results. Restrictions: This function only supports Android system 5.0 and above, Android SDK version 21 and above. Note: This function is only available in ZegoExpressVideo SDK!

Implementation

Future<void> startEffectsEnv() async {
  return await ZegoExpressImpl.instance.startEffectsEnv();
}