public interface IVideoEffectObject
| Modifier and Type | Interface and Description |
|---|---|
static class |
IVideoEffectObject.VIDEO_EFFECT_ACTION |
static class |
IVideoEffectObject.VIDEO_EFFECT_NODE_ID |
| Modifier and Type | Method and Description |
|---|---|
int |
addOrUpdateVideoEffect(int nodeId,
java.lang.String templateName) |
boolean |
getVideoEffectBoolParam(java.lang.String option,
java.lang.String key) |
float |
getVideoEffectFloatParam(java.lang.String option,
java.lang.String key) |
int |
getVideoEffectIntParam(java.lang.String option,
java.lang.String key) |
int |
performVideoEffectAction(int nodeId,
IVideoEffectObject.VIDEO_EFFECT_ACTION actionId) |
int |
removeVideoEffect(int nodeId) |
int |
setVideoEffectBoolParam(java.lang.String option,
java.lang.String key,
boolean value) |
int |
setVideoEffectFloatParam(java.lang.String option,
java.lang.String key,
float value) |
int |
setVideoEffectIntParam(java.lang.String option,
java.lang.String key,
int value) |
int addOrUpdateVideoEffect(int nodeId,
java.lang.String templateName)
nodeId - The unique identifier or combination of video effect nodes. See
VIDEO_EFFECT_NODE_ID.
Example:
- Single effect: VIDEO_EFFECT_NODE_ID.BEAUTY
- Combined effects: VIDEO_EFFECT_NODE_ID.BEAUTY |
VIDEO_EFFECT_NODE_ID.STYLE_MAKEUPtemplateName - The name of the effect template. If set to null or empty string, the SDK
loads the default parameter configuration from the resource bundle.int removeVideoEffect(int nodeId)
nodeId - The unique identifier of the video effect node to remove. See
VIDEO_EFFECT_NODE_ID.int performVideoEffectAction(int nodeId,
IVideoEffectObject.VIDEO_EFFECT_ACTION actionId)
nodeId - The unique identifier of the video effect node. See VIDEO_EFFECT_NODE_ID.actionId - The action to perform on the video effect. See VIDEO_EFFECT_ACTION.int setVideoEffectFloatParam(java.lang.String option,
java.lang.String key,
float value)
option - The category identifier of the parameter.key - The key name of the parameter.value - The float value to set.int setVideoEffectIntParam(java.lang.String option,
java.lang.String key,
int value)
option - The category identifier of the parameter.key - The key name of the parameter.value - The integer value to set.int setVideoEffectBoolParam(java.lang.String option,
java.lang.String key,
boolean value)
option - The category identifier of the parameter.key - The key name of the parameter.value - The boolean value to set.float getVideoEffectFloatParam(java.lang.String option,
java.lang.String key)
option - The category identifier of the parameter.key - The key name of the parameter.int getVideoEffectIntParam(java.lang.String option,
java.lang.String key)
option - The category identifier of the parameter.key - The key name of the parameter.boolean getVideoEffectBoolParam(java.lang.String option,
java.lang.String key)
option - The category identifier of the parameter.key - The key name of the parameter.