removeEffectNodes method

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

@hidden for internal use only @detail api @author zhushufan.ref @brief Removes the designated 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 Removes the designated video effects in setEffectNodes{@link #IVideoEffect#setEffectNodes} or appendEffectNodes{@link #IVideoEffect#appendEffectNodes}.

Implementation

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

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