AliyunIClipConstructor
@protocol AliyunIClipConstructor <NSObject>
* The protocol of clip constructors.
-
* Adds a media clip.
Declaration
Objective-C
- (void)addMediaClip:(AliyunClip *)clip;
Parameters
clip
The media clip to be added.
-
* Sets all media clips.
Declaration
Objective-C
- (void)setMediaClips:(NSArray<AliyunClip *> *)clips;
Parameters
clips
The media clips in an array.
-
* Adds a media clip to an index position.
Declaration
Objective-C
- (void)addMediaClip:(AliyunClip *)clip atIndex:(NSInteger)index;
Parameters
clip
The media clip to be added.
index
The index position.
-
* Replaces a media clip at an index position.
Declaration
Objective-C
- (void)updateMediaClip:(AliyunClip *)clip atIndex:(NSInteger)index;
Parameters
clip
The media clip to be added.
index
The index position.
-
* Deletes a media clip at an index position.
Declaration
Objective-C
- (void)deleteMediaClipAtIndex:(NSInteger)index;
Parameters
index
The index position.
-
* Deletes all media clips.
Declaration
Objective-C
- (void)deleteAllMediaClips;
-
* Gets a media clip at an index position.
Declaration
Objective-C
- (AliyunClip *)mediaClipAtIndex:(NSInteger)index;
Parameters
index
The index position.
Return Value
A media clip.
-
Undocumented
Declaration
Objective-C
- (void)deleteLastMediaClip;
-
* Gets all media clips.
Declaration
Objective-C
- (NSArray<AliyunClip *> *)mediaClips;
Return Value
The media clips in an array.
-
Deprecated
Use
addMediaClip
* Adds a video path.
Deprecated.
The duration is the time interval between this video clip and its preceding video clip. The duration must not be longer than the duration of the video clip and must be set to 0 if the video clip is added to the very beginning of the video stream. Deprecated. It is recommended to use addMediaClip instead.
Declaration
Objective-C
- (void)addVideoWithPath:(NSString *)videoPath animDuration:(CGFloat)animDuration;
Parameters
videoPath
The path of the video clip.
animDuration
The transition duration in seconds.
-
Deprecated
Use
addMediaClip
* Adds a video path.
Deprecated.
The duration is the time interval between this video clip and its preceding video clip. The duration must not be longer than the duration of the video clip and must be set to 0 if the video clip is added to the very beginning of the video stream. Deprecated. It is recommended to use addMediaClip instead.
Declaration
Objective-C
- (void)addVideoWithPath:(NSString *)videoPath startTime:(CGFloat)startTime duration:(CGFloat)duration animDuration:(CGFloat)animDuration;
Parameters
videoPath
The path of the video clip.
animDuration
The transition duration in seconds.
-
Deprecated
Use
addMediaClip
* Add an image.
Deprecated.
Declaration
Objective-C
- (NSString *)addImage:(UIImage *)image duration:(CGFloat)duration animDuration:(CGFloat)animDuration;
Parameters
image
The image to be added.
duration
The playback time of the image.
animDuration
The transition duration.
Return Value
The image path. Deprecated. It is recommended to use addMediaClip instead.