![]() |
AliyunPlayer v7.10.0
Aliyun Player API Reference Manual for iOS Platforms
|
The delegate protocol for the downloader. More...
#include "AMDDelegate.h"
Instance Methods | |
| (void) | - onCompletion: |
| Callback for download completion. | |
| (void) | - onDownloadingProgress:percentage: |
| Callback for download progress. | |
| (void) | - onError:errorModel: |
| Callback for error events. | |
| (void) | - onPrepared:mediaInfo: |
| Callback for when download preparation is complete. | |
| (void) | - onProcessingProgress:percentage: |
| Callback for downloaded file processing progress. | |
The delegate protocol for the downloader.
This protocol defines callbacks for receiving key events from the downloader during the download process, including preparation completion, progress updates, processing progress, completion, and errors.
|
optionalrequired |
Callback for download completion.
This method is called when the entire download and any subsequent processing are successfully completed.
| downloader | The AliMediaDownloader instance that triggered the callback. |
|
optionalrequired |
Callback for download progress.
During the file download process, this method is called periodically to update the download progress.
| downloader | The AliMediaDownloader instance that triggered the callback. |
| percent | The current download progress percentage, with a value range of 0-100. |
|
optionalrequired |
Callback for error events.
This method is called when an error occurs at any stage of the download process.
| downloader | The AliMediaDownloader instance that triggered the callback. |
| errorModel | An error description model containing a detailed error code and message. |
|
optional |
Callback for when download preparation is complete.
This method is called after the downloader has finished preparing the media resource. At this point, media-related information can be retrieved.
| downloader | The AliMediaDownloader instance that triggered the callback. |
| info | The media information object. |
|
optionalrequired |
Callback for downloaded file processing progress.
This method is used to report the progress of processing.
| downloader | The AliMediaDownloader instance that triggered the callback. |
| percent | The current file processing progress percentage, with a value range of 0-100. |