|
Agora Java API Reference for Android
|
Provides methods to manage and configure video effects, such as beauty, style makeup, and filter. More...
Classes | |
| enum | VIDEO_EFFECT_ACTION |
| Actions that can be performed on video effect nodes. More... | |
| enum | VIDEO_EFFECT_NODE_ID |
| Types of applicable video effect nodes. More... | |
Public Member Functions | |
| int | addOrUpdateVideoEffect (int nodeId, String templateName) |
| Adds or updates the video effect for the specified node ID and template. More... | |
| int | removeVideoEffect (int nodeId) |
| Removes the video effect with the specified node ID. More... | |
| int | performVideoEffectAction (int nodeId, VIDEO_EFFECT_ACTION actionId) |
| Performs an action on the specified video effect node. More... | |
| int | setVideoEffectFloatParam (String option, String key, float value) |
| Sets the float parameter for video effects. More... | |
| int | setVideoEffectIntParam (String option, String key, int value) |
| Sets an integer parameter for video effects. More... | |
| int | setVideoEffectBoolParam (String option, String key, boolean value) |
| Sets the boolean parameter for video effects. More... | |
| float | getVideoEffectFloatParam (String option, String key) |
Retrieves float type parameters in video effects. More... | |
| int | getVideoEffectIntParam (String option, String key) |
| Retrieves integer parameters in video effects. More... | |
| boolean | getVideoEffectBoolParam (String option, String key) |
| Gets the boolean parameter in video effects. More... | |
Provides methods to manage and configure video effects, such as beauty, style makeup, and filter.
| int io.agora.rtc2.IVideoEffectObject.addOrUpdateVideoEffect | ( | int | nodeId, |
| String | templateName | ||
| ) |
Adds or updates the video effect for the specified node ID and template.
| nodeId | The unique identifier or combination of identifiers for the video effect node. See VIDEO_EFFECT_NODE_ID. |
| templateName | The name of the effect template. If set to null or an empty string, the SDK loads the default parameter configuration from the resource package. |
AgoraBaseConstants. | int io.agora.rtc2.IVideoEffectObject.removeVideoEffect | ( | int | nodeId | ) |
Removes the video effect with the specified node ID.
| nodeId | The unique identifier of the video effect node to remove. |
| int io.agora.rtc2.IVideoEffectObject.performVideoEffectAction | ( | int | nodeId, |
| VIDEO_EFFECT_ACTION | actionId | ||
| ) |
Performs an action on the specified video effect node.
| nodeId | The unique identifier of the video effect node. |
| actionId | The action to perform on the video effect node. See VIDEO_EFFECT_ACTION. |
| int io.agora.rtc2.IVideoEffectObject.setVideoEffectFloatParam | ( | String | option, |
| String | key, | ||
| float | value | ||
| ) |
Sets the float parameter for video effects.
| option | The identifier of the parameter category. |
| key | The key name of the parameter. |
| value | The float parameter value to set. |
| int io.agora.rtc2.IVideoEffectObject.setVideoEffectIntParam | ( | String | option, |
| String | key, | ||
| int | value | ||
| ) |
Sets an integer parameter for video effects.
| option | The identifier of the parameter category. |
| key | The key name of the parameter. |
| value | The integer value to set. |
| int io.agora.rtc2.IVideoEffectObject.setVideoEffectBoolParam | ( | String | option, |
| String | key, | ||
| boolean | value | ||
| ) |
Sets the boolean parameter for video effects.
| option | The identifier of the parameter category. |
| key | The key name of the parameter. |
| value | The boolean value to set.
|
| float io.agora.rtc2.IVideoEffectObject.getVideoEffectFloatParam | ( | String | option, |
| String | key | ||
| ) |
Retrieves float type parameters in video effects.
Used to retrieve the value of a float type parameter corresponding to the specified option and key in video effects.
| option | The identifier of the parameter category. |
| key | The key name of the parameter. |
| int io.agora.rtc2.IVideoEffectObject.getVideoEffectIntParam | ( | String | option, |
| String | key | ||
| ) |
Retrieves integer parameters in video effects.
Used to retrieve integer-type parameters in video effects.
| option | The identifier of the parameter category. |
| key | The key name of the parameter. |
| boolean io.agora.rtc2.IVideoEffectObject.getVideoEffectBoolParam | ( | String | option, |
| String | key | ||
| ) |
Gets the boolean parameter in video effects.
| option | The identifier of the parameter category. |
| key | The key name of the parameter. |
true: The parameter is enabled.false: The parameter is not enabled or does not exist.
1.8.18