VodAsset播放源类
More...
#include "AVPSource.h"
VodAsset播放源类
使用预加载的视频资产信息进行播放。
◆ initWithJsonString:
| - (instancetype) initWithJsonString: |
|
(NSString *) | jsonString |
|
使用JSON字符串初始化播放源
从JSON字符串创建VodAsset对象,JSON格式应包含VideoBase和PlayInfoList信息。
- Parameters
-
- 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实例
◆ adaptiveCodecEnable
| - (BOOL) adaptiveCodecEnable |
|
readwritenonatomicassign |
◆ clientRand
◆ duration
◆ playInfos
◆ videoId
The documentation for this class was generated from the following file: