ProgressBackView.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // ProgressBackView.h
  3. // XMEye
  4. //
  5. // Created by XM on 2017/3/11.
  6. // Copyright © 2017年 Megatron. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "VideoContentDefination.h"
  10. //#import "MacroDefinication.h"
  11. #import "MyProgressView.h"
  12. @interface ProgressBackView : UIView
  13. {
  14. UIView *pView; //时间轴上方的红线
  15. UILabel *_labTime; //播放时间
  16. UISegmentedControl *_control;
  17. float _add; //每次跳转的时间
  18. float _standardNum;
  19. int _leftNum; //左边界时间
  20. int _rightNum; //边界时间
  21. }
  22. @property (nonatomic, strong) NSDate *date;//当前搜索播放日期
  23. @property (nonatomic, strong) MyProgressView *MPView; //时间轴
  24. @property (nonatomic ,copy) void (^TouchSeektoTime)(NSInteger addTime);//根据拖动时间切换播放
  25. @property (nonatomic) BOOL ifSliding; // 是否在滑动
  26. //根据返回的录像文件刷新时间轴
  27. -(void)refreshProgressWithSearchResult:(NSMutableArray*)array;
  28. //通过搜索录像返回的时间来刷新时间轴
  29. -(void)refreshWithAddTime:(NSInteger)add;
  30. // 录像回放时间帧回调,用来刷新label时间显示和时间轴
  31. -(void)refreshTimeAndProgress:(int)time;
  32. @end