AliyunClip
@interface AliyunClip : AliyunJSONModel
* A class that defines media clips.
-
* The media type.
Declaration
Objective-C
@property (nonatomic) AliyunClipType mediaType; -
* The height of the image or video.
Declaration
Objective-C
@property (nonatomic) int mediaHeight; -
* The width of the image or video.
Declaration
Objective-C
@property (nonatomic) int mediaWidth; -
* The local path of the clip file.
Declaration
Objective-C
@property (nonatomic, copy) NSString *src; -
* The start time of this clip.
Declaration
Objective-C
@property (nonatomic) CGFloat startTime; -
* The duration of the transition.
Declaration
Objective-C
@property (nonatomic) CGFloat fadeDuration; -
* The display mode of this clip. 0 indicates cut mode. 1 indicates fill mode.
Declaration
Objective-C
@property (nonatomic) int displayMode; -
* The rotation angle of this clip.
Declaration
Objective-C
@property (nonatomic) int rotation; -
* API_AVAILABLE(3.20.0) The value of brightness
Declaration
Objective-C
@property (nonatomic) float brightnessValue; -
* API_AVAILABLE(3.20.0) The value of contrast
Declaration
Objective-C
@property (nonatomic) float contrastValue; -
* API_AVAILABLE(3.20.0) The value of saturation
Declaration
Objective-C
@property (nonatomic) float saturationValue; -
* API_AVAILABLE(3.20.0) The value of sharpness
Declaration
Objective-C
@property (nonatomic) float sharpnessValue; -
* API_AVAILABLE(3.20.0) The value of vignette
Declaration
Objective-C
@property (nonatomic) float vignetteValue; -
* API_AVAILABLE(3.31.0) Horizontal flip or no
Declaration
Objective-C
@property (nonatomic) BOOL horizontalFlip; -
* The display duration of this clip.
Declaration
Objective-C
@property (nonatomic) CGFloat duration; -
* The id of this clip. This id is assigned by the system.
Declaration
Objective-C
@property (nonatomic) int streamId; -
* The transition effect between the current video/image and the previous video/image.
Declaration
Objective-C
@property (nonatomic, strong) AliyunTransitionEffect *transitionEffect; -
* The array of sound effects. Sound effects can only be applied to streams that have audio tracks.
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray<AliyunAudioEffect *> *audioEffects; -
* API_AVAILABLE(3.20.0) The fade in model.
Declaration
Objective-C
@property (nonatomic, strong) AliyunAudioFade *fadeIn; -
* API_AVAILABLE(3.20.0) The fade out model.
Declaration
Objective-C
@property (nonatomic, strong) AliyunAudioFade *fadeOut; -
* The volume of this clip. 0-100
Declaration
Objective-C
@property (nonatomic) NSInteger audioMixWeight; -
* API_AVAILABLE(3.25.0) Denoises an audio stream. [0~100], Closed if 0
Declaration
Objective-C
@property (nonatomic) NSInteger denoiseWeight; -
Deprecated
deprecated
* Deprecated
Declaration
Objective-C
@property (nonatomic) CGFloat audioRecordStartTime; -
* Creates an image object.
Declaration
Objective-C
- (instancetype)initWithImagePath:(NSString *)path duration:(CGFloat)duration animDuration:(CGFloat)animDuration;Parameters
pathThe path of the image file.
durationThe display duration of the image.
animDurationThe duration of the transition.
Return Value
An image object.
-
* Creates a GIF object.
Declaration
Objective-C
- (instancetype)initWithGifPath:(NSString *)path;Parameters
pathThe path of the GIF file.
Return Value
A GIF object.
-
* Creates a GIF object.
Declaration
Objective-C
- (instancetype)initWithGifPath:(NSString *)path startTime:(CGFloat)startTime duration:(CGFloat)duration;Parameters
pathThe path of the GIF file.
startTimeThe time when the GIF appears.
durationThe display duration of the GIF.
Return Value
A GIF object.
-
* Creates a video object.
Declaration
Objective-C
- (instancetype)initWithVideoPath:(NSString *)path animDuration:(CGFloat)animDuration;Parameters
pathThe path of the video file.
animDurationThe duration of the transition.
Return Value
A video object.
-
* Creates a video object.
Declaration
Objective-C
- (instancetype)initWithVideoPath:(NSString *)path startTime:(CGFloat)startTime duration:(CGFloat)duration animDuration:(CGFloat)animDuration;Parameters
pathThe path of the video file.
startTimeThe start time of the video.
durationThe duration of the video.
animDurationThe duration of the transition.
Return Value
A video object.
-
* API_AVAILABLE(3.7.0)
Applies an animation. Note: 1. Alpha animations cannot be applied to source streams.
- This method is not applicable when the reverse playback effect is used.
Declaration
Objective-C
- (void)runAction:(AliyunAction *)action;Parameters
actionThe animation to be applied.
-
* API_AVAILABLE(3.7.0)
Stops an animation.
Declaration
Objective-C
- (void)stopAction:(AliyunAction *)action;Parameters
actionThe animation to be stopped.
-
* API_AVAILABLE(3.7.0)
Gets all animations.
Declaration
Objective-C
- (NSArray *)allActions;Return Value
All animations in an array.
AliyunClip Class Reference