QCPlayerModel Class Reference
Inherits from | NSObject |
---|---|
Declared in | QCPlayerModel.h |
hederValue
视频的请求地址的自定义请求头
@property (nonatomic, copy) NSString *hederValue
Declared In
QCPlayerModel.h
videoURL
视频的播放地址 如果设置了多分辨率视频时,该属性无作用
@property (nonatomic, strong) NSString *videoURL
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