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

#include "AVPSource.h"

Inheritance diagram for AVPVidStsSource:
AVPSource

Instance Methods

(instancetype) - initWithVid:accessKeyId:accessKeySecret:securityToken:region:
 用vid和sts来播放视频,临时AccessKeyId、AccessKeySecret和SecurityToken:开启RAM授权,并通过STS授权系统提供的OpenAPI或SDK获取的AccessKeyId、AccessKeySecret和SecurityToken,用于播放和下载请求参数明细:https://help.aliyun.com/document_detail/28788.html?spm=5176.doc28787.6.706.2G5SLS
 
(instancetype) - initWithVid:accessKeyId:accessKeySecret:securityToken:region:format:playConfig:
 
(instancetype) - initWithVid:accessKeyId:accessKeySecret:securityToken:region:playConfig:
 

Properties

NSString * accessKeyId
 accessKeyId
 
NSString * accessKeySecret
 accessKeySecret
 
long authTimeout
 authTimeout
 
NSString * format
 format,default is nil, value is "mp4,mp3,flv,m3u8"
 
NSString * outputType
 outputType
 
NSString * playConfig
 playConfig
 
NSString * reAuthInfo
 reAuthInfo
 
NSString * region
 region
 
NSString * resultType
 resultType
 
NSString * securityToken
 securityToken
 
NSString * streamType
 streamType
 
NSString * vid
 vid
 
- 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

◆ initWithVid:accessKeyId:accessKeySecret:securityToken:region:

- (instancetype) initWithVid: (NSString *) vid
accessKeyId: (NSString *) accessKeyId
accessKeySecret: (NSString *) accessKeySecret
securityToken: (NSString *) securityToken
region: (NSString *) region 

用vid和sts来播放视频,临时AccessKeyId、AccessKeySecret和SecurityToken:开启RAM授权,并通过STS授权系统提供的OpenAPI或SDK获取的AccessKeyId、AccessKeySecret和SecurityToken,用于播放和下载请求参数明细:https://help.aliyun.com/document_detail/28788.html?spm=5176.doc28787.6.706.2G5SLS

Parameters
vid视频播放的vid标识
accessKeyId用户sts的accessKey ID
accessKeySecret用户sts的accessKey secret
securityToken用户sts的token信息
region用户sts的region信息

◆ initWithVid:accessKeyId:accessKeySecret:securityToken:region:format:playConfig:

- (instancetype) initWithVid: (NSString *) vid
accessKeyId: (NSString *) accessKeyId
accessKeySecret: (NSString *) accessKeySecret
securityToken: (NSString *) securityToken
region: (NSString *) region
format: (NSString *) format
playConfig: (NSString *) playConfig 

◆ initWithVid:accessKeyId:accessKeySecret:securityToken:region:playConfig:

- (instancetype) initWithVid: (NSString *) vid
accessKeyId: (NSString *) accessKeyId
accessKeySecret: (NSString *) accessKeySecret
securityToken: (NSString *) securityToken
region: (NSString *) region
playConfig: (NSString *) playConfig 

Property Documentation

◆ accessKeyId

- (NSString*) accessKeyId
readwritenonatomiccopy

accessKeyId

◆ accessKeySecret

- (NSString*) accessKeySecret
readwritenonatomiccopy

accessKeySecret

◆ authTimeout

- (long) authTimeout
readwritenonatomicassign

authTimeout

◆ format

- (NSString*) format
readwritenonatomiccopy

format,default is nil, value is "mp4,mp3,flv,m3u8"

◆ outputType

- (NSString*) outputType
readwritenonatomiccopy

outputType

◆ playConfig

- (NSString*) playConfig
readwritenonatomiccopy

playConfig

◆ reAuthInfo

- (NSString*) reAuthInfo
readwritenonatomiccopy

reAuthInfo

◆ region

- (NSString*) region
readwritenonatomiccopy

region

◆ resultType

- (NSString*) resultType
readwritenonatomiccopy

resultType

◆ securityToken

- (NSString*) securityToken
readwritenonatomiccopy

securityToken

◆ streamType

- (NSString*) streamType
readwritenonatomiccopy

streamType

◆ vid

- (NSString*) vid
readwritenonatomiccopy

vid


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