addOrUpdateVideoEffect

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

Future<void> addOrUpdateVideoEffect(
      {required int nodeId, required String templateName});
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: Method call succeeds.
  • < 0: Method call fails.