![]() |
AliyunPlayer v7.12.0
Aliyun Player API Reference Manual for iOS Platforms
|
VodAsset playback source class. More...
#include "AVPSource.h"
Instance Methods | |
| (instancetype) | - initWithJsonString: |
| Initialize playback source with JSON string. | |
| (instancetype) | - initWithVid:clientRand:duration:playInfos: |
| Initialize playback source with video ID, title, cover URL, duration and play info list. | |
Properties | |
| BOOL | adaptiveCodecEnable |
| Whether to enable adaptive codec. | |
| NSString * | clientRand |
| Client random number. | |
| double | duration |
| Video duration. | |
| NSArray< AVPVodPlayInfo * > * | playInfos |
| Play info list. | |
| NSString * | videoId |
| Video ID. | |
Properties inherited from AVPSource | |
| NSString * | coverURL |
| The URL of the album cover. | |
| NSString * | definitions |
| List of resolution types supported by VOD server. | |
| BOOL | forceQuality |
| Whether to force the player to use the specified resolution. | |
| NSString * | quality |
| The preferred definition for playback. | |
| NSString * | title |
| The title of the video. | |
VodAsset playback source class.
Plays media using pre-loaded video asset information.
| - (instancetype) initWithJsonString: | (NSString *) | jsonString |
Initialize playback source with JSON string.
Creates a VodAsset object from a JSON string containing VideoBase and PlayInfoList information.
| jsonString | JSON string containing video information |
| - (instancetype) initWithVid: | (NSString *) | vid | |
| clientRand: | (NSString *) | clientRand | |
| duration: | (double) | duration | |
| playInfos: | (NSArray< AVPVodPlayInfo * > *) | playInfos |
Initialize playback source with video ID, title, cover URL, duration and play info list.
| vid | Video ID |
| clientRand | Client random number |
| duration | Video duration |
| playInfos | Play info list |
|
readwritenonatomicassign |
Whether to enable adaptive codec.
Default is YES
|
readwritenonatomiccopy |
Client random number.
|
readwritenonatomicassign |
Video duration.
|
readwritenonatomicstrong |
Play info list.
|
readwritenonatomiccopy |
Video ID.