#include "AliMediaDownloader.h"
◆ deleteFile
Delete the downloaded file.
◆ deleteFile:vid:format:index:
+ (int) deleteFile: |
|
(NSString *) | saveDir |
vid: |
|
(NSString *) | vid |
format: |
|
(NSString *) | format |
index: |
|
(int) | index |
Delete a downloaded file.
- Parameters
-
saveDir | The path where the file is saved. |
vid | VID. |
format | Format. |
index | The download index corresponds to the VID. |
◆ destroy
Delete the download object.
◆ getConfig
◆ getSDKVersion
+ (NSString *) getSDKVersion |
|
|
|
◆ init
Intialize the download object.
◆ prepareWithPlayAuth:
Use AVPVidAuthSource to prepare for playback.
- Parameters
-
source | vid Play the media through playAuth. |
◆ prepareWithVid:
Use AVPVidStsSource to prepare for playback.
- Parameters
-
source | vid Play the media through VidSts. |
◆ selectTrack:
- (void) selectTrack: |
|
(int) | trackIndex |
|
Specify the indexes of the tracks to be downloaded.
- Parameters
-
trackIndex | Use the prepare callback to retrieve all track indexes. |
◆ setConfig:
◆ setPlayUrlConvertCallback:
Set a URL conversion callback.
URL conversion is typically used in P2P broadcasting.
- Parameters
-
callback | The function pointer of the callback. |
◆ setSaveDirectory:
- (void) setSaveDirectory: |
|
(NSString *) | dir |
|
Set a path to save the downloaded file.
- Parameters
-
◆ start
◆ stop
◆ updateWithPlayAuth:
Update the AVPVidAuthSource information when the authentication expires.
- Parameters
-
source | vid Authentication information. |
◆ updateWithVid:
Update the AVPVidStsSource information when the authentication expires.
- Parameters
-
source | vid STS information. |
◆ delegate
◆ downloadedFilePath
- (NSString*) downloadedFilePath |
|
readnonatomicassign |
Query the path of the downloaded file.
The documentation for this class was generated from the following file: