AliyunPasterManager
Deprecated
please use AliyunStickerManager
@interface AliyunPasterManager : NSObject
* deprecated, please use AliyunStickerManager.
-
* The callback of sticker managers.
Declaration
Objective-C
@property (nonatomic, weak) id<AliyunPasterManagerDelegate> delegate;
-
* The display area of the sticker.
Declaration
Objective-C
@property (nonatomic) CGSize displaySize;
-
* The video export resolution.
Declaration
Objective-C
@property (nonatomic) CGSize outputSize;
-
* The preview size.
Declaration
Objective-C
@property (nonatomic) CGSize previewRenderSize;
-
* Adds a sticker.
Declaration
Objective-C
- (AliyunPasterController *)addPaster:(NSString *)filePath startTime:(double)st duration:(double)duration;
Parameters
filePath
The path of the sticker file.
st
The time when the sticker appears.
duration
The display duration of the sticker.
Return Value
The sticker controller.
-
* Adds a caption.
Declaration
Objective-C
- (AliyunPasterController *)addSubtitle:(NSString *)text bounds:(CGRect)bounds startTime:(CGFloat)st duration:(CGFloat)duration;
Parameters
text
The text contents.
bounds
The size of the text display area.
st
The time when the caption appears.
duration
The display duration of the caption.
Return Value
The sticker controller.
-
* Gets all sticker controllers.
Declaration
Objective-C
- (NSArray *)getAllPasterControllers;
Return Value
The sticker controllers in an array.
-
* Gets a sticker controller by id.
Declaration
Objective-C
- (AliyunPasterController *)getPasterControllerByObj:(id)obj;
Parameters
The
id of a sticker controller.
Return Value
pasterController
-
* Gets the sticker in a specific position of the display area.
Declaration
Objective-C
- (AliyunPasterController *)touchPoint:(CGPoint)point atTime:(double)time;
Parameters
point
The position in the display area.
time
The current playback time.
Return Value
If a sticker exists in the specified position, the sticker controller is returned. Otherwise, nil is returned.
-
* Removes all sticker controllers. This method removes all stickers.
Declaration
Objective-C
- (void)removeAllPasterControllers;
-
* API_AVAILABLE(3.7.0)
Removes a sticker controller and the corresponding sticker from rendering.
Declaration
Objective-C
- (void)removePasterController:(AliyunPasterController *)pasterController;
Parameters
pasterController
The sticker controller object to be removed.
-
* Removes all normal stickers.
Declaration
Objective-C
- (void)removeAllNormalPasterControllers;
-
* Removes all animated captions.
Declaration
Objective-C
- (void)removeAllCaptionPasterControllers;
-
* Removes all standard captions.
Declaration
Objective-C
- (void)removeAllSubtitlePasterControllers;
-
* Gets the sticker controller that is currently being edited.
Declaration
Objective-C
- (AliyunPasterController *)getCurrentEditPasterController;
Return Value
The sticker controller.