//
//  NvsRecordingProgress.h
//  progress
//
//  Created by Meicam on 2018/3/17.
//  Copyright © 2018年 刘东旭. All rights reserved.
//

#import <UIKit/UIKit.h>

#define TotalTime 15000000
#define MinRecordTime 4000000

typedef NS_ENUM(NSUInteger, ProgressStatus) {
    UnKnow,
    Start,
    Progressing,
    End,
    Prepare,
};

@interface NvsRecordingProgress : UIView

@property (weak, nonatomic)id delegate;
@property (assign, nonatomic) ProgressStatus status;
@property (assign, nonatomic, readonly) NSUInteger getCount;//获取录制有几段

@property (assign, nonatomic, readonly) int64_t value;//获取当前值（0-15000000）
//开始录制
- (void)beginProgress;
//录制中传递当前的时间占总时间的百分比
- (void)currentValue:(int64_t)value;
//结束录制
- (void)endProgress;
//准备删除
- (void)prepareDelete;
//删除
- (void)deleteProgress;
//获取上一段结束value毫秒
- (int64_t)getValue;
//是否只有一段并且达到了15秒
- (BOOL)singleRecordingOverFifteen;

- (int64_t)getMinRecordTime;

@end
