Package io.agora.rtc2
Interface IVideoEffectObject
public interface IVideoEffectObject
- Since:
- v4.6.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionintaddOrUpdateVideoEffect(int nodeId, String templateName) booleangetVideoEffectBoolParam(String option, String key) floatgetVideoEffectFloatParam(String option, String key) intgetVideoEffectIntParam(String option, String key) intperformVideoEffectAction(int nodeId, IVideoEffectObject.VIDEO_EFFECT_ACTION actionId) intremoveVideoEffect(int nodeId) intsetVideoEffectBoolParam(String option, String key, boolean value) intsetVideoEffectFloatParam(String option, String key, float value) intsetVideoEffectIntParam(String option, String key, int value)
-
Method Details
-
addOrUpdateVideoEffect
- Parameters:
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.- Returns:
- - 0: Success. - < 0: Failure. See the error codes in `AgoraBaseConstants`.
- Since:
- v4.6.0
-
removeVideoEffect
int removeVideoEffect(int nodeId) - Parameters:
nodeId- The unique identifier of the video effect node to remove.- Returns:
- - 0: Success. - < 0: Failure.
- Since:
- v4.6.0
-
performVideoEffectAction
- Parameters:
nodeId- The unique identifier of the video effect node.actionId- The action to perform on the video effect node. See `VIDEO_EFFECT_ACTION`.- Returns:
- - 0: Success. - < 0: Failure.
- Since:
- v4.6.0
-
setVideoEffectFloatParam
- Parameters:
option- The identifier of the parameter category.key- The key name of the parameter.value- The float parameter value to set.- Returns:
- - 0: Success. - < 0: Failure.
- Since:
- v4.6.0
-
setVideoEffectIntParam
- Parameters:
option- The identifier of the parameter category.key- The key name of the parameter.value- The integer value to set.- Returns:
- - 0: Success. - < 0: Failure.
- Since:
- v4.6.0
-
setVideoEffectBoolParam
- Parameters:
option- The identifier of the parameter category.key- The key name of the parameter.value- The boolean value to set. - `true`: Set to enabled. - `false`: Set to disabled.- Returns:
- - 0: Success. - < 0: Failure.
- Since:
- v4.6.0
-
getVideoEffectFloatParam
- Parameters:
option- The identifier of the parameter category.key- The key name of the parameter.- Returns:
- - If the method call succeeds, returns the current float value. - If the method call fails, returns 0.0f.
- Since:
- v4.6.0
-
getVideoEffectIntParam
- Parameters:
option- The identifier of the parameter category.key- The key name of the parameter.- Returns:
- - If the method call succeeds, returns the current parameter value. - If the method call fails, returns 0.
- Since:
- v4.6.0
-
getVideoEffectBoolParam
- Parameters:
option- The identifier of the parameter category.key- The key name of the parameter.- Returns:
- - `true`: The parameter is enabled. - `false`: The parameter is not enabled or does not exist.
- Since:
- v4.6.0
-