AliyunPlayer v6.19.0
Aliyun Player API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
AVPUrlSource Class Reference

#include "AVPSource.h"

Inheritance diagram for AVPUrlSource:
AVPSource

Instance Methods

(instancetype) - fileURLWithPath:
 init AVPUrlSource with filepath
 
(instancetype) - urlWithString:
 init AVPUrlSource with url
 

Properties

NSString * cacheFile
 cache file path, app may cache the beginning of remote mp4 file to local path, set it to player to improve loading speed.
 
uint64_t originSize
 
NSURL * playerUrl
 player url
 
- Properties inherited from AVPSource
NSString * coverURL
 封面地址
 
NSString * definitions
 设置点播服务器返回的码率清晰度类型。例如:"FD,LD,SD,HD,OD,2K,4K,SQ,HQ"。 注意:如果类型为"AUTO", 那么只会返回自适应码率流。
 
BOOL forceQuality
 是否强制使用此清晰度。如果强制,则在没有对应清晰度的情况下播放不了。
 
NSString * quality
 期望播放的清晰度
 
NSString * title
 视频标题
 

Method Documentation

◆ fileURLWithPath:

- (instancetype) fileURLWithPath: (NSString *) url

init AVPUrlSource with filepath

Parameters
urlfile path

◆ urlWithString:

- (instancetype) urlWithString: (NSString *) url

init AVPUrlSource with url

Parameters
urlvideo url address

Property Documentation

◆ cacheFile

- (NSString*) cacheFile
readwritenonatomiccopy

cache file path, app may cache the beginning of remote mp4 file to local path, set it to player to improve loading speed.

◆ originSize

- (uint64_t) originSize
readwritenonatomicassign

◆ playerUrl

- (NSURL*) playerUrl
readwritenonatomiccopy

player url


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