ZFCustomControlView.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // ZFCustomControlView.h
  3. // ZFPlayer_Example
  4. //
  5. // Created by 紫枫 on 2019/6/5.
  6. // Copyright © 2019 紫枫. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <ZFPlayer/ZFPlayerMediaControl.h>
  10. #import "ZFSpeedLoadingView.h"
  11. typedef void(^fullScreenEvent)(NSString *str);
  12. typedef void(^bottomBtnEvent)(NSString *str);
  13. @interface ZFCustomControlView : UIView <ZFPlayerMediaControl>
  14. @property (nonatomic, copy)fullScreenEvent btnEvent;
  15. @property (nonatomic, copy)bottomBtnEvent bottomEvent;
  16. /// 控制层自动隐藏的时间,默认2.5秒
  17. @property (nonatomic, assign) NSTimeInterval autoHiddenTimeInterval;
  18. /// 控制层显示、隐藏动画的时长,默认0.25秒
  19. @property (nonatomic, assign) NSTimeInterval autoFadeTimeInterval;
  20. @property (nonatomic, strong)NSDictionary *playDoc;
  21. /**
  22. 设置标题、封面、全屏模式
  23. @param title 视频的标题
  24. @param coverUrl 视频的封面,占位图默认是灰色的
  25. @param fullScreenMode 全屏模式
  26. */
  27. - (void)showTitle:(NSString *)title coverURLString:(NSString *)coverUrl fullScreenMode:(ZFFullScreenMode)fullScreenMode;
  28. -(void)setFousBtnHide:(BOOL)ishide;
  29. @end