AliyunPlayer v7.12.0
Aliyun Player API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
AVPVodAsset Class Reference

VodAsset播放源类 More...

#include "AVPSource.h"

Inheritance diagram for AVPVodAsset:
AVPSource

Instance Methods

(instancetype) - initWithJsonString:
 使用JSON字符串初始化播放源
 
(instancetype) - initWithVid:clientRand:duration:playInfos:
 使用视频ID、标题、封面URL、时长和播放信息初始化播放源
 

Properties

BOOL adaptiveCodecEnable
 是否启用多编码自适应 默认为YES
 
NSString * clientRand
 客户端随机数
 
double duration
 视频时长
 
NSArray< AVPVodPlayInfo * > * playInfos
 播放信息列表
 
NSString * videoId
 视频ID
 
- Properties inherited from AVPSource
NSString * coverURL
 媒体封面URL 媒体的封面或海报图片的URL地址。
 
NSString * definitions
 点播服务器支持的清晰度类型列表
 
BOOL forceQuality
 是否强制使用指定的清晰度
 
NSString * quality
 期望播放的清晰度
 
NSString * title
 视频标题
 

Detailed Description

VodAsset播放源类

使用预加载的视频资产信息进行播放。

Method Documentation

◆ initWithJsonString:

- (instancetype) initWithJsonString: (NSString *) jsonString

使用JSON字符串初始化播放源

从JSON字符串创建VodAsset对象,JSON格式应包含VideoBase和PlayInfoList信息。

Parameters
jsonString包含视频信息的JSON字符串
Returns
初始化后的AVPVodAsset实例,如果解析失败则返回nil

◆ initWithVid:clientRand:duration:playInfos:

- (instancetype) initWithVid: (NSString *) vid
clientRand: (NSString *) clientRand
duration: (double) duration
playInfos: (NSArray< AVPVodPlayInfo * > *) playInfos 

使用视频ID、标题、封面URL、时长和播放信息初始化播放源

Parameters
vid视频ID
clientRand客户端随机数
duration视频时长
playInfos播放信息列表
Returns
初始化后的AVPVodAsset实例

Property Documentation

◆ adaptiveCodecEnable

- (BOOL) adaptiveCodecEnable
readwritenonatomicassign

是否启用多编码自适应 默认为YES

◆ clientRand

- (NSString*) clientRand
readwritenonatomiccopy

客户端随机数

◆ duration

- (double) duration
readwritenonatomicassign

视频时长

◆ playInfos

- (NSArray<AVPVodPlayInfo *>*) playInfos
readwritenonatomicstrong

播放信息列表

◆ videoId

- (NSString*) videoId
readwritenonatomiccopy

视频ID


The documentation for this class was generated from the following file: