YOUPAIZFCustomControlView.h 896 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // YOUPAIZFCustomControlView.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.h"
  10. #import "ZFSpeedLoadingView.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface YOUPAIZFCustomControlView : UIView <ZFPlayerMediaControl>
  13. /// 控制层自动隐藏的时间,默认2.5秒
  14. @property (nonatomic, assign) NSTimeInterval autoHiddenTimeInterval;
  15. /// 控制层显示、隐藏动画的时长,默认0.25秒
  16. @property (nonatomic, assign) NSTimeInterval autoFadeTimeInterval;
  17. /**
  18. 设置标题、封面、全屏模式
  19. @param title 视频的标题
  20. @param coverUrl 视频的封面,占位图默认是灰色的
  21. @param fullScreenMode 全屏模式
  22. */
  23. - (void)showTitle:(NSString *)title coverURLString:(NSString *)coverUrl fullScreenMode:(ZFFullScreenMode)fullScreenMode;
  24. @end
  25. NS_ASSUME_NONNULL_END