QCPlayerModel Class Reference

Inherits from NSObject
Declared in QCPlayerModel.h

Overview

视频播放原子 视频播放的最小单位模型,负责承载一个视频播放响应的属性值

  title

视频播放的标题,可以显示在标题栏

@property (nonatomic, copy) NSString *title

Declared In

QCPlayerModel.h

  hederValue

视频的请求地址的自定义请求头

@property (nonatomic, copy) NSString *hederValue

Declared In

QCPlayerModel.h

  videoURL

视频的播放地址 如果设置了多分辨率视频时,该属性无作用

@property (nonatomic, strong) NSString *videoURL

Declared In

QCPlayerModel.h

  coverUrl

视频的封面图地址

@property (nonatomic, copy) NSURL *coverUrl

Declared In

QCPlayerModel.h

  isSuspend

视频是否支持悬浮窗播放

@property (nonatomic, assign) BOOL isSuspend

Declared In

QCPlayerModel.h

  startPlayTime

视频的起播时间

@property (nonatomic, assign) NSTimeInterval startPlayTime

Declared In

QCPlayerModel.h

  videoUrls

多分辨率视频地址数组

@property (nonatomic, strong) NSArray<QCPlayerURL*> *videoUrls

See Also

Declared In

QCPlayerModel.h

  defaultVideoIndex

设置多分辨率时的默认分辨率索引

@property (nonatomic, assign) NSInteger defaultVideoIndex

Declared In

QCPlayerModel.h

– setMultiVideoURLs:defaultVideoIndex:

当一个视频包含多个分辨率时(比如720p、1080p、4k等),可以通过这个方法进行设置

- (void)setMultiVideoURLs:(NSArray<QCPlayerURL*> *)urlArray defaultVideoIndex:(NSInteger)defaultVideoIndex

Parameters

urlArray

多分辨率视频地址对象数组

defaultVideoIndex

默认分辨率索引

See Also

Declared In

QCPlayerModel.h

– getDefaultVideoUrlIndex

获取当前模仿分辨率的索引

- (NSInteger)getDefaultVideoUrlIndex

Declared In

QCPlayerModel.h