YBIBVideoActionBar.h 907 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // YBIBVideoActionBar.h
  3. // YBImageBrowserDemo
  4. //
  5. // Created by 波儿菜 on 2019/7/11.
  6. // Copyright © 2019 杨波. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class YBIBVideoActionBar;
  11. @protocol YBIBVideoActionBarDelegate <NSObject>
  12. @required
  13. - (void)yb_videoActionBar:(YBIBVideoActionBar *)actionBar clickPlayButton:(UIButton *)playButton;
  14. - (void)yb_videoActionBar:(YBIBVideoActionBar *)actionBar clickPauseButton:(UIButton *)pauseButton;
  15. - (void)yb_videoActionBar:(YBIBVideoActionBar *)actionBar changeValue:(float)value;
  16. @end
  17. @interface YBIBVideoActionBar : UIView
  18. @property (nonatomic, weak) id<YBIBVideoActionBarDelegate> delegate;
  19. - (void)setMaxValue:(float)value;
  20. - (void)setCurrentValue:(float)value;
  21. - (void)pause;
  22. - (void)play;
  23. + (CGFloat)defaultHeight;
  24. @property (nonatomic, assign, readonly) BOOL isTouchInside;
  25. @end
  26. NS_ASSUME_NONNULL_END