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

URL playback source class. More...

#include "AVPSource.h"

Inheritance diagram for AVPUrlSource:
AVPSource

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.

Detailed Description

URL playback source class.

Used to specify media source for URL-based playback. Supports HTTP, HTTPS protocols and local file paths.

Method Documentation

◆ fileURLWithPath:

- (instancetype) fileURLWithPath: (NSString *) url

Initialize playback source with local file path.

Creates a URL playback source instance for playing local files.

Parameters
urlFull path of local media file
Returns
Initialized AVPUrlSource instance

◆ urlWithString:

- (instancetype) urlWithString: (NSString *) url

Initialize playback source with URL string.

Creates a URL playback source instance for playing media through network URL.

Parameters
urlMedia URL address supporting HTTP, HTTPS, etc.
Returns
Initialized AVPUrlSource instance

Property Documentation

◆ __deprecated

- (NSString* cacheFile) __deprecated
readwritenonatomiccopy

◆ originSize

- (uint64_t) originSize
readwritenonatomicassign

Original file size.

The original size of the media file in bytes. Used for verifying cache integrity.

◆ playerUrl

- (NSURL*) playerUrl
readwritenonatomiccopy

Play URL.

The playback URL of the media. Can be network URL or local file path.


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