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

Live STS playback source class. More...

#include "AVPSource.h"

Inheritance diagram for AVPLiveStsSource:
AVPSource

Instance Methods

(instancetype) - initWithUrl:accessKeyId:accessKeySecret:securityToken:region:domain:app:stream:encryptionType:
 Initialize live playback source with URL and STS information.

Properties

NSString * accessKeyId
 AccessKey ID.
NSString * accessKeySecret
 AccessKey Secret.
NSString * app
 Live Application Name.
NSString * domain
 Live Domain.
ENCRYPTION_TYPE encryptionType
 Encryption Type.
NSString * region
 Region.
NSString * securityToken
 Security Token.
NSString * stream
 stream identifier
NSString * url
 Live Stream 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

Live STS playback source class.

Plays encrypted live stream after authentication using temporary security token. Suitable for live streaming scenarios requiring access control and encryption.

Method Documentation

◆ initWithUrl:accessKeyId:accessKeySecret:securityToken:region:domain:app:stream:encryptionType:

- (instancetype) initWithUrl: (NSString *) url
accessKeyId: (NSString *) accessKeyId
accessKeySecret: (NSString *) accessKeySecret
securityToken: (NSString *) securityToken
region: (NSString *) region
domain: (NSString *) domain
app: (NSString *) app
stream: (NSString *) stream
encryptionType: (ENCRYPTION_TYPE) encryptionType 

Initialize live playback source with URL and STS information.

Creates an encrypted live playback source using temporary security token.

Parameters
urlLive stream URL
accessKeyIdSTS temporary AccessKey ID
accessKeySecretSTS temporary AccessKey Secret
securityTokenSTS security token
regionRegion where live stream is located
domainLive domain name
appLive application name
streamLive stream name
encryptionTypeEncryption type
Returns
Initialized AVPLiveStsSource instance

Property Documentation

◆ accessKeyId

- (NSString*) accessKeyId
readwritenonatomiccopy

AccessKey ID.

ID of STS temporary AccessKey.

◆ accessKeySecret

- (NSString*) accessKeySecret
readwritenonatomiccopy

AccessKey Secret.

STS temporary AccessKey Secret.

◆ app

- (NSString*) app
readwritenonatomiccopy

Live Application Name.

Application identifier in live streaming service.

◆ domain

- (NSString*) domain
readwritenonatomiccopy

Live Domain.

Domain name used for live streaming.

◆ encryptionType

- (ENCRYPTION_TYPE) encryptionType
readwriteatomicassign

Encryption Type.

Encryption method used for live stream.

See also
ENCRYPTION_TYPE

◆ region

- (NSString*) region
readwritenonatomiccopy

Region.

Region identifier, such as "cn-shanghai".

◆ securityToken

- (NSString*) securityToken
readwritenonatomiccopy

Security Token.

STS security token.

◆ stream

- (NSString*) stream
readwritenonatomiccopy

stream identifier

◆ url

- (NSString*) url
readwritenonatomiccopy

Live Stream URL.

Playback address of the live stream.


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