AliyunRecorderConfig
@interface AliyunRecorderConfig : NSObject
* The config of record API_AVAILABLE(3.22.0)
-
* The path of output mp4 API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, copy) NSString *outuptPath;
-
* The tmp path of recorder task API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) NSString *taskPath;
-
* Whether using hardware AEC API_AVAILABLE(3.27.0)
Declaration
Objective-C
@property (nonatomic, readonly) BOOL isUsingAEC;
-
* The Config of output video API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) AliyunRecorderVideoConfig *videoConfig;
-
* The Info of background API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, strong) AliyunRecorderBackgroundInfo *bgInfo;
-
* The controller of mic (it will be nil if set the bg music) API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) id<AliyunMicRecordController> microphoneController;
-
* The controller of bg music API_AVALIABLE(3.27.0)
Declaration
Objective-C
@property (nonatomic, readonly) id<AliyunAudioRecordController> bgmController;
-
* The controller of camera API_AVALIABLE(3.27.0)
Declaration
Objective-C
@property (nonatomic, readonly) id<AliyunCameraRecordController> cameraController;
-
* The controller of view soure API_AVALIABLE(3.27.0)
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<id<AliyunViewRecordController>> *viewSourceControllers;
-
* The controller of player source API_AVALIABLE(3.27.0)
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<id<AliyunPlayerRecordController>> *playerSourceControllers;
-
* The controller of avFile source API_AVALIABLE(3.29.0)
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<id> *avSourceControllers;
-
* Init API_AVAILABLE(3.27.0)
Declaration
Objective-C
- (instancetype)initWithVideoConfig:(AliyunRecorderVideoConfig *)videoConfig outputPath:(NSString *)outputPath usingAEC:(BOOL)usingAEC;
Parameters
videoConfig
video output config
outputPath
video output path
usingAEC
whether using aec
-
* Init API_AVAILABLE(3.22.0) using aec by default
Declaration
Objective-C
- (instancetype)initWithVideoConfig:(AliyunRecorderVideoConfig *)videoConfig outputPath:(NSString *)outputPath;
Parameters
videoConfig
video output config
outputPath
video output path
-
* API_AVAILABLE(3.22.0) add camera record source (can not add multi, if you call multi it will return same controller)
Declaration
Objective-C
- (id<AliyunCameraRecordController>)addCamera:(id)layout;
Parameters
layout
the layout of camera source in the output video
-
* remove camera source API_AVAILABLE(3.27.0)
Declaration
Objective-C
- (BOOL)removeCamera;
-
* add source from view API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (id<AliyunViewRecordController>)addViewSource:(AliyunViewRecordSource *)source layout:(id)layout;
Parameters
source
the source of view
layout
the layout of view source in the output video
-
* remove view source API_AVAILABLE(3.27.0)
Declaration
Objective-C
- (BOOL)removeViewSource:(id<AliyunViewRecordController>)sourceController;
Parameters
sourceController
The controller of view source
-
* add source from video API_AVAILABLE(3.29.0)
Declaration
Objective-C
- (id)addAVFileSource:(id)source layout:(id)layout;
Parameters
source
the source of avFile
layout
the layout of avFile source in th output video
-
* remove player source API_AVAILABLE(3.29.0)
Declaration
Objective-C
- (BOOL)removeAVFileSource:(id)sourceControler;
Parameters
sourceController
The controller of avFile source
-
* add microphone source, add by default API_AVAILABLE(3.27.0)
Declaration
Objective-C
- (id<AliyunMicRecordController>)addMicrophone;
-
* remove microphone source API_AVAILABLE(3.27.0)
Declaration
Objective-C
- (BOOL)removeMicrophone;
-
* Set background music API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (id<AliyunAudioRecordController>)setBgMusicWithFile:(NSString *)filePath startTime:(NSTimeInterval)startTime duration:(NSTimeInterval)duration;
Parameters
filePath
the path of music resource
start
the start time in music file
duration
the duration clip from music file
-
Undocumented
Declaration
Objective-C
- (BOOL) removeBgMusic;
-
* add water mark API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (void)addWaterMark:(AliyunRecorderImageSticker *)waterMark;
Parameters
waterMark
The sticker info for water mark
-
* remove water mark API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (void)removeWaterMark:(int)waterMarkId;
Parameters
waterMarkId
the id of water mark
-
Deprecated
please use addAVFileSource:
* add source from video API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (id<AliyunPlayerRecordController>)addPlayerSource: (AliyunPlayerRecordSource *)source layout:(id)layout;
Parameters
source
the source of player
layout
the layout of player source in th output video
-
Deprecated
please use removeAVFileSource:
* remove player source API_AVAILABLE(3.27.0)
Declaration
Objective-C
- (BOOL)removePlayerSource:(id<AliyunPlayerRecordController>)sourceController;
Parameters
sourceController
The controller of player source
-
Deprecated
please use cameraController, playerSourceControllers, viewSourceControllers
* The controllers of video API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<id<AliyunVideoBaseRecordController>> *videoRecordControllers;
-
Deprecated
please use removeCamera, removePlayerSource:, removeViewSource:
* remove video API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (BOOL)removeVideo:(int)videoId;
Parameters
videoId
The id of video in the controller.videoid