AliyunPlayer v7.0.0
Aliyun Player API Reference Manual for iOS Platforms
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Pages
AliMediaDownloader Class Reference

#import "AliMediaDownloader.h"

Inheritance diagram for AliMediaDownloader:

Instance Methods

(void) - deleteFile
 删除下载文件 More...
 
(void) - destroy
 销毁下载对象 More...
 
(AVDConfig *) - getConfig
 获取下载config More...
 
(instancetype) - init
 初始化下载对象 More...
 
(void) - prepareWithPlayAuth:
 使用AVPVidAuthSource准备播放 More...
 
(void) - prepareWithVid:
 使用AVPVidStsSource准备播放 More...
 
(void) - selectTrack:
 设置下载的trackIndex More...
 
(void) - setConfig:
 设置下载config More...
 
(void) - setPlayUrlConvertCallback:
 设置转换播放的url的回调函数,一般用于p2p中的url地址转换 More...
 
(void) - setSaveDirectory:
 设置下载的保存路径 More...
 
(void) - start
 开始下载 More...
 
(void) - stop
 停止下载 More...
 
(void) - updateWithPlayAuth:
 鉴权过期,更新AVPVidAuthSource信息, More...
 
(void) - updateWithVid:
 鉴权过期,更新AVPVidStsSource信息, More...
 

Class Methods

(int) + deleteFile:vid:format:index:
 删除下载文件 More...
 
(NSString *) + getSDKVersion
 获取SDK版本号信息 More...
 

Properties

id< AMDDelegatedelegate
 设置代理,参考AMDDelegate More...
 
NSString * downloadedFilePath
 获取下载之后的文件路径 More...
 

Method Documentation

◆ deleteFile

- (void) deleteFile

删除下载文件

◆ deleteFile:vid:format:index:

+ (int) deleteFile: (NSString *)  saveDir
vid: (NSString *)  vid
format: (NSString *)  format
index: (int)  index 

删除下载文件

Parameters
saveDir文件保存路径
vidvid
format格式
indexvid对应的下载索引

◆ destroy

- (void) destroy

销毁下载对象

◆ getConfig

- (AVDConfig *) getConfig

获取下载config

◆ getSDKVersion

+ (NSString *) getSDKVersion

获取SDK版本号信息

◆ init

- (instancetype) init

初始化下载对象

◆ prepareWithPlayAuth:

- (void) prepareWithPlayAuth: (AVPVidAuthSource *)  source

使用AVPVidAuthSource准备播放

Parameters
sourcevid playAuth的播放方式

◆ prepareWithVid:

- (void) prepareWithVid: (AVPVidStsSource *)  source

使用AVPVidStsSource准备播放

Parameters
sourcevid sts的播放方式

◆ selectTrack:

- (void) selectTrack: (int)  trackIndex

设置下载的trackIndex

Parameters
trackIndex从prepare回调中可以获取所有index

◆ setConfig:

- (void) setConfig: (AVDConfig *)  config

设置下载config

◆ setPlayUrlConvertCallback:

- (void) setPlayUrlConvertCallback: (PlayURLConverCallback callback

设置转换播放的url的回调函数,一般用于p2p中的url地址转换

Parameters
callback回调函数指针

◆ setSaveDirectory:

- (void) setSaveDirectory: (NSString *)  dir

设置下载的保存路径

Parameters
dir保存文件夹

◆ start

- (void) start

开始下载

◆ stop

- (void) stop

停止下载

◆ updateWithPlayAuth:

- (void) updateWithPlayAuth: (AVPVidAuthSource *)  source

鉴权过期,更新AVPVidAuthSource信息,

Parameters
sourcevid auth的信息

◆ updateWithVid:

- (void) updateWithVid: (AVPVidStsSource *)  source

鉴权过期,更新AVPVidStsSource信息,

Parameters
sourcevid sts的信息

Property Documentation

◆ delegate

- (id<AMDDelegate>) delegate
readwritenonatomicweak

设置代理,参考AMDDelegate

◆ downloadedFilePath

- (NSString*) downloadedFilePath
readnonatomicassign

获取下载之后的文件路径


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