enableVideoEffect abstract method

  1. @Deprecated('Deprecated since v3.50.1 and will be deleted in v3.56.1, use RTCVideoEffect.enableVideoEffect and RTCVideoEffect.disableVideoEffect instead.')
Future<int?> enableVideoEffect(
  1. bool enable
)

Creates/destroys video effects engine.

Returned value:

  • 0: Success.
  • 1000: The Effect SDK is not integrated.
  • 1001: This API is not available in your Effect SDK.
  • <0: Other errors. See Error Code Table.

Notes:

  • Call this API after calling RTCVideo.checkVideoEffectLicense and RTCVideo.setVideoEffectAlgoModelPath.
  • After calling this method, you must call RTCVideo.setVideoEffectNodes to actually turn on video effects.
  • In a common scenario, the special effects engine will be destroyed with the destruction of the RTC engine. When you have high performance requirements, you can call false in this method to destroy the special effects engine separately when the special effects related functions are not used.

Implementation

@Deprecated(
    'Deprecated since v3.50.1 and will be deleted in v3.56.1, use RTCVideoEffect.enableVideoEffect and RTCVideoEffect.disableVideoEffect instead.')
Future<int?> enableVideoEffect(bool enable);