addOrUpdateVideoEffect
Adds or updates the effect of the specified video effect node and template.
abstract addOrUpdateVideoEffect(nodeId: number, templateName: string): number;
- Since
- Added 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 of the video effect node. See VideoEffectNodeId.
- templateName
- The name of the effect template. If set to
NULLor an empty string, the SDK loads the default configuration from the resource package.
Return Values
- 0: Success.
- < 0: Failure.