ZFCustomControlView.h 940 B

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