//
//  NvDouyinCaptureView.h
//  SDKDemo
//
//  Created by shizhouhu on 2018/8/30.
 //
//

#import <UIKit/UIKit.h>
#import "NvsRecordingProgress.h"
#import "NvGraphicBtn.h"
@class NvDouyinCaptureView;

@protocol NvDouyinCaptureViewDelegate <NSObject>
@optional
- (void)countDownBtnClick;
- (void)selectMusicClick;
- (void)faceBtnClicked;
- (void)propsBtnClicked;
- (void)cutMusicClicked;
- (void)caremaButtonClicked;
- (BOOL)supportAutoFocus;
- (BOOL)supportAutoExposure;
- (void)focusOnPoint:(CGPoint)point;
- (void)exposureOnPoint:(CGPoint)point;
- (void)backButtonClicked;
- (void)albumClick;
- (void)deleteBtnClicked;
- (void)nextBtnClicked;
- (void)filterBtnClicked;
- (void)flashBtnClicked;
- (void)startRecord;
- (void)endRecord;
- (void)douyinCaptureView:(NvDouyinCaptureView *)douyinCaptureView selectSpeed:(float)speed;

@end

@interface NvDouyinCaptureView : UIView {
    @public
    NvGraphicBtn *flashBtn;
    NvsRecordingProgress *recordingProgress; //录制进度条
//    NvGraphicBtn *cutMusicBtn;
    NvGraphicBtn *faceBtn;
    UIButton *deleteBtn;
    UIButton *nextBtn;
}

@property (weak, nonatomic) id<NvDouyinCaptureViewDelegate> delegate;

@property (nonatomic, strong) NvGraphicBtn *album;          //相册
@property (nonatomic, strong) UIButton *selectMusic;         //选择音乐
@property (nonatomic, strong) NvGraphicBtn *countDownBtn;   //倒计时

- (void)updateCaptureClipDuration:(int64_t)duration;

- (void)hiddenAllButtonExceptRecordingButton;
- (void)showAllButton;

- (void)showFocusToPoint:(CGPoint)point;
- (void)hiddenFocusImage;

//录制超过15秒后
- (void)recordingEnd;

- (void)enableRecordingButton;

- (void)countDownStartRecording;

@end
