applyStickerEffect method

Future<int?> applyStickerEffect(
  1. string tickerPath
)

@hidden for internal use only @detail api @author zhushufan.ref @brief 私有接口
设置贴纸的特效路径 @param effectNodes 特效素材包路径数。 @return - 0: 调用成功。 - < 0: 调用失败

Implementation

Future<int?> applyStickerEffect(string tickerPath) async {
  $a() => ($instance as $p_a.IVideoEffect).applyStickerEffect(tickerPath);
  $i() =>
      ($instance as $p_i.ByteRTCVideoEffect).applyStickerEffect(tickerPath);

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