AliyunIPasterRender
@protocol AliyunIPasterRender <NSObject>
* The protocol of stickers.
-
* Adds a sticker.
Declaration
Objective-C
- (int)addGifPaster:(AliyunEffectPaster *)paster;
Parameters
paster
The sticker to be added. @return ALIVC_COMMON_RETURN_SUCCESS if the invocation is successful. ALIVC_COMMON_INVALID_STATE if the renderer’s state is incorrect. ALIVC_SVIDEO_EDITOR_FILE_NOT_EXIST if the image file does not exist. ALIVC_SVIDEO_EDITOR_PARSE_RESOURCE_FAILED if an error occurred during image parsing. ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
-
* Adds a standard caption.
Declaration
Objective-C
- (int)addSubtitlePaster:(AliyunEffectSubtitle *)subtitle textImage:(UIImage *)textImage;
Parameters
subtitle
The standard caption to be added.
textImage
The text image. @return ALIVC_COMMON_RETURN_SUCCESS if the invocation is successful. ALIVC_COMMON_INVALID_STATE if the renderer’s state is incorrect. ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
-
* Adds an animated caption.
Declaration
Objective-C
- (int)addCaptionPaster:(AliyunEffectCaption *)caption textImage:(UIImage *)textImage;
Parameters
caption
The animated caption to be added.
textImage
The text image. @return ALIVC_COMMON_INVALID_STATE if the renderer’s state is incorrect. ALIVC_SVIDEO_EDITOR_FILE_NOT_EXIST if the image file does not exist. ALIVC_SVIDEO_EDITOR_PARSE_RESOURCE_FAILED if an error occurred during image parsing. ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID
-
* Removes a sticker.
Declaration
Objective-C
- (int)removePaster:(AliyunEffectPasterBase *)basePaster;
Parameters
basePaster
The sticker to be removed. @return ALIVC_COMMON_RETURN_SUCCESS if the invocation is successful. ALIVC_COMMON_INVALID_STATE if the renderer’s state is incorrect. ALIVC_FRAMEWORK_RENDER_ERROR_SCENE_INVALID