BGReLiveProgressView.h 1.0 KB

12345678910111213141516171819202122232425262728
  1. //
  2. // BGReLiveProgressView.h
  3. // BuguLive
  4. //
  5. // Created by xfg on 2017/2/10.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef void (^DragingSliderCallback)(float progress);
  10. @interface BGReLiveProgressView : UIView
  11. @property (nonatomic, strong) UISlider * slider;
  12. @property (nonatomic, strong) UIProgressView * progressView;
  13. @property (nonatomic, strong) UILabel * playedTimeLabel;
  14. @property (nonatomic, strong) UILabel * unplayedTimeLabel;
  15. @property (nonatomic, strong) UIButton * playBtn;
  16. @property (nonatomic, assign) float totalTimeInSeconds;
  17. @property (nonatomic, assign) float cacheProgress;
  18. @property (nonatomic, assign) float playProgress;
  19. @property (nonatomic, assign) BOOL isStartSeekPro; // 是否开始拖动进度条
  20. @property (nonatomic, copy) DragingSliderCallback dragingSliderCallback;
  21. @property (nonatomic, copy) FWVoidBlock playBtnCallback;
  22. @end