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

URL播放源类 More...

#include "AVPSource.h"

Inheritance diagram for AVPUrlSource:
AVPSource

Instance Methods

(instancetype) - fileURLWithPath:
 使用本地文件路径初始化播放源
(instancetype) - urlWithString:
 使用URL字符串初始化播放源

Properties

NSString *cacheFile __deprecated
 本地缓存文件路径
uint64_t originSize
 原始文件大小
NSURL * playerUrl
 播放URL
Properties inherited from AVPSource
NSString * coverURL
 媒体封面URL 媒体的封面或海报图片的URL地址。
NSString * definitions
 点播服务器支持的清晰度类型列表
BOOL forceQuality
 是否强制使用指定的清晰度
NSString * quality
 期望播放的清晰度
NSString * title
 视频标题

Detailed Description

URL播放源类

用于指定通过URL进行播放的媒体源。支持HTTP、HTTPS协议以及本地文件路径。

Method Documentation

◆ fileURLWithPath:

- (instancetype) fileURLWithPath: (NSString *) url

使用本地文件路径初始化播放源

创建一个URL播放源实例,用于播放本地文件。

Parameters
url本地媒体文件的完整路径
Returns
初始化后的AVPUrlSource实例

◆ urlWithString:

- (instancetype) urlWithString: (NSString *) url

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

创建一个URL播放源实例,用于通过网络URL播放媒体。

Parameters
url媒体的URL地址,支持HTTP、HTTPS等协议
Returns
初始化后的AVPUrlSource实例

Property Documentation

◆ __deprecated

- (NSString* cacheFile) __deprecated
readwritenonatomiccopy

本地缓存文件路径

Deprecated
使用 AliPlayerGlobalSettings::enableLocalCache 代替

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

Deprecated
use AliPlayerGlobalSettings::enableLocalCache instead

◆ originSize

- (uint64_t) originSize
readwritenonatomicassign

原始文件大小

媒体文件的原始大小,单位为字节。用于验证缓存的完整性。

◆ playerUrl

- (NSURL*) playerUrl
readwritenonatomiccopy

播放URL

媒体的播放地址。可为网络URL或本地文件路径。


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