TuSDKRecordVideoCameraDelegate Protocol Reference
Conforms to | TuSDKVideoCameraDelegate |
---|---|
Declared in | TuSDKRecordVideoCamera.h |
– onVideoCamera:result:
required method
视频录制完成
- (void)onVideoCamera:(TuSDKRecordVideoCamera *)camerea result:(TuSDKVideoResult *)result
Parameters
camerea |
相机 |
---|---|
result |
Declared In
TuSDKRecordVideoCamera.h
– onVideoCamera:failedWithError:
required method
视频录制出错
- (void)onVideoCamera:(TuSDKRecordVideoCamera *)camerea failedWithError:(NSError *)error
Parameters
camerea |
相机 |
---|---|
error |
错误对象 |
Declared In
TuSDKRecordVideoCamera.h
– onVideoCamera:saveProgressChanged:
续拍、变速这两种情况下需要对视频进行时间切片分段、变速处理,该情况下为了提升用户体验可以提供进度条展示 其他情况下,保存都是瞬时完成
- (void)onVideoCamera:(TuSDKRecordVideoCamera *)camerea saveProgressChanged:(CGFloat)progress
Parameters
camerea |
相机 |
---|---|
progress |
保存的进度progress |
Declared In
TuSDKRecordVideoCamera.h
– onVideoCamera:recordProgressChanged:durationTime:
录制进度改变
- (void)onVideoCamera:(TuSDKRecordVideoCamera *)camerea recordProgressChanged:(CGFloat)progress durationTime:(CGFloat)durationTime
Parameters
camerea |
相机 |
---|---|
progress |
当前进度 |
durationTime |
当前录制时长 |
Declared In
TuSDKRecordVideoCamera.h
– onVideoCamera:recordStateChanged:
录制状态改变
- (void)onVideoCamera:(TuSDKRecordVideoCamera *)camerea recordStateChanged:(lsqRecordState)state
Parameters
camerea |
相机 |
---|---|
state |
当前录制状态 |
Declared In
TuSDKRecordVideoCamera.h