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
videoConfigvideo output config
outputPathvideo output path
usingAECwhether using aec
-
* Init API_AVAILABLE(3.22.0) using aec by default
Declaration
Objective-C
- (instancetype)initWithVideoConfig:(AliyunRecorderVideoConfig *)videoConfig outputPath:(NSString *)outputPath;Parameters
videoConfigvideo output config
outputPathvideo 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
layoutthe 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
sourcethe source of view
layoutthe 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
sourceControllerThe controller of view source
-
* add source from video API_AVAILABLE(3.29.0)
Declaration
Objective-C
- (id)addAVFileSource:(id)source layout:(id)layout;Parameters
sourcethe source of avFile
layoutthe layout of avFile source in th output video
-
* remove player source API_AVAILABLE(3.29.0)
Declaration
Objective-C
- (BOOL)removeAVFileSource:(id)sourceControler;Parameters
sourceControllerThe 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
filePaththe path of music resource
startthe start time in music file
durationthe 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
waterMarkThe sticker info for water mark
-
* remove water mark API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (void)removeWaterMark:(int)waterMarkId;Parameters
waterMarkIdthe 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
sourcethe source of player
layoutthe 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
sourceControllerThe 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
videoIdThe id of video in the controller.videoid
AliyunRecorderConfig Class Reference