getVideoEffectInterface method

Future<IVideoEffect?> getVideoEffectInterface()

@detail api @author zhushufan.ref @brief Gets video effect interfaces. @return Video effect interfaces. See IVideoEffect{@link #IVideoEffect}.

Implementation

Future<IVideoEffect?> getVideoEffectInterface() async {
  $a() async => packObject(
      await ($instance as $p_a.RTCEngine).getVideoEffectInterface(),
      () => IVideoEffect());
  $i() async => packObject(
      await ($instance as $p_i.ByteRTCEngine).getVideoEffectInterface(),
      () => IVideoEffect());

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}