ZXVideoPlayerControlView.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // ZXVideoPlayerControlView.h
  3. // ZXVideoPlayer
  4. //
  5. // Created by Shawn on 16/4/21.
  6. // Copyright © 2016年 Shawn. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "ZXVideoPlayerTimeIndicatorView.h"
  10. #import "ZXVideoPlayerBrightnessView.h"
  11. #import "ZXVideoPlayerVolumeView.h"
  12. #import "ZXVideoPlayerBatteryView.h"
  13. #define kZXPlayerControlViewHideNotification @"ZXPlayerControlViewHideNotification"
  14. @protocol ZXVideoPlayerControlViewDelegage <NSObject>
  15. @optional
  16. - (void)videoPlayerControlViewDidTapped;
  17. @end
  18. @interface ZXVideoPlayerControlView : UIView
  19. @property (nonatomic, assign, readwrite) id<ZXVideoPlayerControlViewDelegage> delegate;
  20. @property (nonatomic, strong, readonly) UIView *topBar;
  21. @property (nonatomic, strong, readonly) UIView *bottomBar;
  22. @property (nonatomic, strong, readonly) UIButton *playButton;
  23. @property (nonatomic, strong, readonly) UIButton *pauseButton;
  24. @property (nonatomic, strong, readonly) UIButton *fullScreenButton;
  25. @property (nonatomic, strong, readonly) UIButton *shrinkScreenButton;
  26. @property (nonatomic, strong, readonly) UISlider *progressSlider;
  27. @property (nonatomic, strong, readonly) UILabel *timeLabel;
  28. @property (nonatomic, strong, readonly) UIActivityIndicatorView *indicatorView;
  29. @property (nonatomic, assign, readonly) BOOL isBarShowing;
  30. /// 返回按钮
  31. @property (nonatomic, strong, readwrite) UIButton *backButton;
  32. /// 屏幕锁定按钮
  33. @property (nonatomic, strong, readwrite) UIButton *lockButton;
  34. /// 缓冲进度条
  35. @property (nonatomic, strong, readwrite) UIProgressView *bufferProgressView;
  36. /// 快进、快退指示器
  37. @property (nonatomic, strong, readwrite) ZXVideoPlayerTimeIndicatorView *timeIndicatorView;
  38. /// 亮度指示器
  39. @property (nonatomic, strong, readwrite) ZXVideoPlayerBrightnessView *brightnessIndicatorView;
  40. /// 音量指示器
  41. @property (nonatomic, strong, readwrite) ZXVideoPlayerVolumeView *volumeIndicatorView;
  42. /// 电池条
  43. @property (nonatomic, strong, readwrite) ZXVideoPlayerBatteryView *batteryView;
  44. /// 标题
  45. @property (nonatomic, strong, readwrite) UILabel *titleLabel;
  46. - (void)animateHide;
  47. - (void)animateShow;
  48. - (void)autoFadeOutControlBar;
  49. - (void)cancelAutoFadeOutControlBar;
  50. @end