BUPlayerItem.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // BUPlayerItem.h
  3. // BUAdSDK
  4. //
  5. // Created by hlw on 2017/12/21.
  6. // Copyright © 2017年 bytedance. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface BUPlayerItem : NSObject
  11. /// 视频标题
  12. @property (nonatomic, copy) NSString *title;
  13. /// 视频URL - H.264 - 远程
  14. @property (nonatomic, strong) NSURL *videoURL_H264_Remote;
  15. /// 视频URL - H.264 - 本地 兼容方案,激励视频由上层控制
  16. @property (nonatomic, strong) NSURL *videoURL_H264_Local;
  17. /// 视频URL - HEVC - 远程
  18. @property (nonatomic, strong) NSURL *videoURL_H265_Remote;
  19. /// 视频URL - HEVC - 本地
  20. @property (nonatomic, strong) NSURL *videoURL_H265_Local;
  21. /// 允许使用 H265 进行播放
  22. @property (nonatomic, assign) BOOL enableH265;
  23. /// H265 下允许降级播放
  24. @property (nonatomic, assign) BOOL enableH265DowngradePlay;
  25. /// H264 下允许降级播放
  26. @property (nonatomic, assign) BOOL enableH264DowngradePlay;
  27. /// 允许使用边下边播
  28. @property (nonatomic, assign) BOOL enableCache;
  29. /// 视频封面网络图片url
  30. @property (nonatomic, copy) NSString *placeholderImageURLString;
  31. /// 默认图的展示形式
  32. @property (nonatomic, assign) UIViewContentMode placeholderImageContentMode;
  33. /// 从xx秒开始播放视频(默认0)
  34. @property (nonatomic, assign) NSInteger seekTime;
  35. @end
  36. NS_ASSUME_NONNULL_END