addOrUpdateVideoEffect

Adds or updates the effect for the specified video effect node and template.

abstract addOrUpdateVideoEffect(nodeId: number, templateName: string): number;
Since
Available since v4.6.2.
Note: Priority rules:
  • Style makeup nodes take precedence over filter effect nodes.
  • To apply filter effects, you must first remove the style makeup effect node.

Parameters

nodeId
The unique identifier or combination of identifiers for the video effect node. See VideoEffectNodeId.
templateName
Name of the effect template. If set to NULL or an empty string, the SDK loads the default configuration from the resource package.

Return Values

  • 0: The method call succeeds.
  • < 0: The method call fails.