AliyunRecorder
@interface AliyunRecorder : NSObject
* The recorder of multi source
-
* is in recording state API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) BOOL isRecording;
-
* is in previewing API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) BOOL isPreviewing;
-
* the state of recorder API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) AliyunRecorderState state;
-
* The callback of recorder event API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, weak) id<AliyunRecorderDelegate> delegate;
-
* The custom render API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, weak) id<AliyunRecorderCustomRender> customRender;
-
* The config of output video API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) AliyunRecorderConfig *config;
-
* The rate of recording API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic) CGFloat rate;
-
* The manager of video clip API_AVAILABLE(3.22.0)
Declaration
Objective-C
@property (nonatomic, readonly) AliyunClipManager *clipManager;
-
* Init API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (instancetype)initWithConfig:(AliyunRecorderConfig *)config;
Parameters
config
the config of output video param
-
* API_AVAILABLE(3.22.0) prepare for record; some record source may be need auth in this step; if you not call this, inner will call in startRecord or startPreview
Declaration
Objective-C
- (BOOL)prepare;
Return Value
is success or not
-
* start preview API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (int)startPreview;
-
* stop preview API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (void)stopPreview;
-
* start record API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (int)startRecord;
-
* stop record API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (void)stopRecord;
-
* Finish record API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (void)finishRecord:(void (^)(NSString *, NSError *))completion;
Parameters
completion
the callback of finishRecord; finish record need merge multi record clip async. it will call this function if merge finish
-
* Finish record for editor API_AVAILABLE(3.23.0)
Declaration
Objective-C
- (void)finishRecordForEdit:(void (^)(NSString *, NSError *))completion;
Parameters
completion
the callback of finish recording
-
* Cancel; it will delete all the clip resource that record before. and change the state to idle API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (void)cancel;