//
//  NvAddCaptionView.h
//  SDKDemo
//
//  Created by Meicam on 2018/5/31.
//  Copyright © 2018年 刘东旭. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NVHeader.h"
#import "NvsTimeline.h"
#import "NvsCTimelineEditor.h"
@class NvAddCaptionView;

@protocol NvAddCaptionViewDelegate

- (void)nvAddCaptionViewdidAddCaptionClick;
- (void)nvAddCaptionViewdidAddStyleClick;
- (void)nvAddCaptionViewdidAddOkClick;

- (void)dragScrollTimelineEnded:(int64_t)timestamp;
@required
- (void)dragTimelineEditor:(int64_t)timestamp;
- (void)timelineEditor:(id)timelineEditor dragHandleEnded:(int64_t)timestamp isInPoint:(bool)isInPoint;
- (void)timelineEditor:(id)timelineEditor draggingHandle:(int64_t)timestamp isInPoint:(bool)isInPoint;
- (void)captionTimelineEditorZoomIn;
- (void)captionTimelineEditorZoomOut;

@end

@interface NvAddCaptionView : UIView

@property (nonatomic, strong) UIButton *styleButton;

@property (weak, nonatomic)id delegate;
@property (strong, nonatomic) NvsTimeline *timeline;
@property (nonatomic, strong) NvsCTimelineEditor *timelineEditor;
@property (nonatomic, strong) UIButton *playButton;
//设置当前sequence显示时间
- (void)setcurrentTime:(int64_t)time;

@end
