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

Base class for playback sources. More...

#include "AVPSource.h"

Inheritance diagram for AVPSource:
AVPBitStreamSource AVPLiveStsSource AVPUrlSource AVPVidAuthSource AVPVidMpsSource AVPVidStsSource

Properties

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

Base class for playback sources.

Base class for all playback source classes. Defines common properties and configuration items for playback sources, including cover, title, definition, etc. Specific playback source implementations (such as URL, VID, etc.) inherit this class and extend corresponding functionality.

Common property explanation:

  • coverURL: Media cover or poster image for UI display
  • title: Media title information
  • quality: Expected playback definition; supported definitions depend on the media itself
  • forceQuality: Whether to force the specified definition. Playback fails if forced but unavailable
  • definitions: List of available definitions for filtering streams returned by server

Property Documentation

◆ coverURL

- (NSString*) coverURL
readwritenonatomiccopy

The URL of the album cover.

URL address of the cover or poster image of the media.

◆ definitions

- (NSString*) definitions
readwritenonatomiccopy

List of resolution types supported by VOD server.

Specifies the resolution types that VOD server can return. Multiple types separated by commas, such as "FD,LD,SD,HD,OD,2K,4K,SQ,HQ". Special value "AUTO" means only return adaptive bitrate streams. Valid only for Alibaba Cloud VOD sources.

◆ forceQuality

- (BOOL) forceQuality
readwritenonatomicassign

Whether to force the player to use the specified resolution.

When set to YES, playback will fail if the media does not support the specified resolution. When set to NO, the player automatically selects the available resolution.

◆ quality

- (NSString*) quality
readwritenonatomiccopy

The preferred definition for playback.

Specifies the preferred resolution identifier. The player will try to select the stream matching this identifier for playback. Valid only for multi-resolution sources.

◆ title

- (NSString*) title
readwritenonatomiccopy

The title of the video.


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