appendEffectNodes method

Future<int?> appendEffectNodes(
  1. List<String> effectNodes
)

@hidden for internal use only @detail api @author zhushufan.ref @brief Appends video effects material package. @param effectNodes Array of effect material package paths. @return - 0: Success. - –1000: The Effects SDK is not integrated. - –1001: This API is unavailable for your Effects SDK. - –1002: Your Effects SDK's version is incompatible. - < 0: Other error. See error code table for specific instructions. @note This API adds new video effect to the video effect you set with setEffectNodes{@link #IVideoEffect#setEffectNodes}.

Implementation

Future<int?> appendEffectNodes(List<String> effectNodes) async {
  $a() => ($instance as $p_a.IVideoEffect).appendEffectNodes(effectNodes);
  $i() =>
      ($instance as $p_i.ByteRTCVideoEffect).appendEffectNodes(effectNodes);

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