![]() |
AliyunPlayer v7.10.0
Aliyun Player API Reference Manual for iOS Platforms
|
URL playback source class. More...
#include "AVPSource.h"
Instance Methods | |
| (instancetype) | - fileURLWithPath: |
| Initialize playback source with local file path. | |
| (instancetype) | - urlWithString: |
| Initialize playback source with URL string. | |
Properties | |
| NSString *cacheFile | __deprecated |
| uint64_t | originSize |
| Original file size. | |
| NSURL * | playerUrl |
| Play URL. | |
| 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. | |
URL playback source class.
Used to specify media source for URL-based playback. Supports HTTP, HTTPS protocols and local file paths.
| - (instancetype) fileURLWithPath: | (NSString *) | url |
Initialize playback source with local file path.
Creates a URL playback source instance for playing local files.
| url | Full path of local media file |
| - (instancetype) urlWithString: | (NSString *) | url |
Initialize playback source with URL string.
Creates a URL playback source instance for playing media through network URL.
| url | Media URL address supporting HTTP, HTTPS, etc. |
|
readwritenonatomiccopy |
|
readwritenonatomicassign |
Original file size.
The original size of the media file in bytes. Used for verifying cache integrity.
|
readwritenonatomiccopy |
Play URL.
The playback URL of the media. Can be network URL or local file path.