AliyunMixComposer
@interface AliyunMixComposer : NSObject
* VideoJoiner
-
Undocumented
Declaration
Objective-C
@property(nonatomic, weak) id<AlivcMixComposerDelegate> delegate
-
* The video export resolution.
Declaration
Objective-C
@property (nonatomic) CGSize outputSize;
-
* The video output path. Required.
Declaration
Objective-C
@property (nonatomic, copy) NSString *outputPath;
-
* The bitrate in bit/s.
Declaration
Objective-C
@property (nonatomic) NSInteger bitrate;
-
* The video quality.
Declaration
Objective-C
@property (nonatomic) AliyunVideoQuality videoQuality;
-
* The average frame rate. Default value: 30.
Declaration
Objective-C
@property (nonatomic) CGFloat fps;
-
* The GOP size. Default value: 5.
Declaration
Objective-C
@property (nonatomic) NSInteger gop;
-
* Initializes a video track for the duet.
Declaration
Objective-C
- (AliyunMixTrack *)createTrack:(CGRect)trackDisplayFrame;
Parameters
trackDisplayFrame
The resolution of the video track. If the video export resolution is 960*960 and trackDisplayFrame is set to (0,0,480,960), it indicates that this video track is displayed on the left side of the screen.
Return Value
An AlivcMixTrack object.
-
* Specifies a video track whose duration is used as the duration of the duet.
Declaration
Objective-C
- (void)setOutputDurationReferenceTrack:(AliyunMixTrack *)referenceTrack;
Parameters
referenceTrack
The video track.
-
* Specifies a video track whose audio is used as the audio of the duet, mute if not set the track after v3.18.0.
Declaration
Objective-C
- (void)setOutputAudioReferenceTrack:(AliyunMixTrack *)referenceTrack;
Parameters
referenceTrack
The video track.
-
* Specifies backgroundColor of the result view. API_AVAILABLE(3.19.0)
Declaration
Objective-C
- (void)setBackgroundColor:(int)backgroundColor;
Parameters
backgroundColor
The result view backgroundColor.
-
* Specifies backgroundImageFilePath and displayMode of the result view. nil is clear, default is nil. API_AVAILABLE(3.19.0)
Declaration
Objective-C
- (void)setBackgroundImageFilePath:(NSString *)backgroundImageFilePath imageDisplayMode: (AliyunMixVideoBackgroundImageMode)imageDisplayMode;
Parameters
backgroundImageFilePath
The result view backgroundImageFilePath.
imageDisplayMode
The imageDisplayMode. - see: AliyunMixVideoBackgroundImageMode.
-
* Starts the composition process.
Declaration
Objective-C
- (int)start;
Return Value
A return value.
-
* Pauses the composition process.
Declaration
Objective-C
- (int)pause;
Return Value
A return value.
-
* Resumes the composition process.
Declaration
Objective-C
- (int)resume;
Return Value
A return value.
-
* Cancels the composition process.
Declaration
Objective-C
- (int)cancel;
Return Value
A return value.