![]() |
AliyunPlayer v7.10.0
Aliyun Player API Reference Manual for iOS Platforms
|
The delegate for media file loading status callbacks. More...
#include "AliMediaLoader.h"
Instance Methods | |
| (void) | - onCanceled: |
| Canceled callback. | |
| (void) | - onCompleted: |
| Completed callback. | |
| (void) | - onError:code:msg: |
| Error callback. | |
| (void) | - onErrorV2:errorModel: |
| Error callback V2. | |
The delegate for media file loading status callbacks.
This protocol defines various status callbacks during the media file preloading process, including error, completion, and cancellation.
|
optionalrequired |
|
optionalrequired |
Completed callback.
This method will be called when the file loading for the specified URL is completed. This callback is triggered by a load operation.
| url | The URL of the file that has finished loading. |
|
optional |
Error callback.
This method will be called when an error occurs during file loading.
| url | The loading URL where the error occurred. |
| code | Error code. -300 means the same URL has been loaded; -301 means the local cache is not enabled, causing the preload to fail. |
| msg | Error description message. |
|
optionalrequired |
Error callback V2.
This method will be called when an error occurs during file loading. This callback is triggered by a load operation.
| url | The loading URL where the error occurred. |
| errorModel | The player error description model, which contains more detailed error information. Refer to the definition of AVPErrorModel. |