BU_ZFPlayerControlViewDelegate.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //
  2. // ZFPlayerControlViewDelegate.h
  3. //
  4. // Copyright (c) 2016年 任子丰 ( http://github.com/renzifeng )
  5. //
  6. // Permission is hereby granted, free of charge, to any person obtaining a copy
  7. // of this software and associated documentation files (the "Software"), to deal
  8. // in the Software without restriction, including without limitation the rights
  9. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  10. // copies of the Software, and to permit persons to whom the Software is
  11. // furnished to do so, subject to the following conditions:
  12. //
  13. // The above copyright notice and this permission notice shall be included in
  14. // all copies or substantial portions of the Software.
  15. //
  16. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  19. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  20. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  21. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  22. // THE SOFTWARE.
  23. #ifndef BU_ZFPlayerControlViewDelegate_h
  24. #define BU_ZFPlayerControlViewDelegate_h
  25. #endif /* ZFPlayerControlViewDelegate_h */
  26. @protocol BU_ZFPlayerControlViewDelagate <NSObject>
  27. @optional
  28. /** 返回按钮事件 */
  29. - (void)zf_controlView:(UIView *)controlView backAction:(UIButton *)sender;
  30. /** cell播放中小屏状态 关闭按钮事件 */
  31. - (void)zf_controlView:(UIView *)controlView closeAction:(UIButton *)sender;
  32. /** 播放按钮事件 */
  33. - (void)zf_controlView:(UIView *)controlView playAction:(UIButton *)sender;
  34. /** 全屏按钮事件 */
  35. - (void)zf_controlView:(UIView *)controlView fullScreenAction:(UIButton *)sender;
  36. /** 锁定屏幕方向按钮时间 */
  37. - (void)zf_controlView:(UIView *)controlView lockScreenAction:(UIButton *)sender;
  38. /** 重播按钮事件 */
  39. - (void)zf_controlView:(UIView *)controlView repeatPlayAction:(UIButton *)sender;
  40. /** 中间播放按钮事件 */
  41. - (void)zf_controlView:(UIView *)controlView cneterPlayAction:(UIButton *)sender;
  42. /** 加载失败按钮事件 */
  43. - (void)zf_controlView:(UIView *)controlView failAction:(UIButton *)sender;
  44. /** slider的点击事件(点击slider控制进度) */
  45. - (void)zf_controlView:(UIView *)controlView progressSliderTap:(CGFloat)value;
  46. /** 开始触摸slider */
  47. - (void)zf_controlView:(UIView *)controlView progressSliderTouchBegan:(UISlider *)slider;
  48. /** slider触摸中 */
  49. - (void)zf_controlView:(UIView *)controlView progressSliderValueChanged:(UISlider *)slider;
  50. /** slider触摸结束 */
  51. - (void)zf_controlView:(UIView *)controlView progressSliderTouchEnded:(UISlider *)slider;
  52. /** 控制层即将显示 */
  53. - (void)zf_controlViewWillShow:(UIView *)controlView isFullscreen:(BOOL)fullscreen;
  54. /** 控制层即将隐藏 */
  55. - (void)zf_controlViewWillHidden:(UIView *)controlView isFullscreen:(BOOL)fullscreen;
  56. /** 控制层被点击 */
  57. - (void)zf_controlViewTouchesBegan:(UIView *)controlView;
  58. @end