![]() |
AliyunPlayer v7.10.0
Aliyun Player API Reference Manual for iOS Platforms
|
The status callback protocol for the VOD media loader. More...
#include "AliVodMediaLoader.h"
Instance Methods | |
| (void) | - onCanceled:index: |
| Cancellation callback. | |
| (void) | - onCompleted:index: |
| Completion callback. | |
| (void) | - onError:index:code:msg: |
| Error callback. | |
| (void) | - onErrorV2:index:errorModel: |
| Error callback V2. | |
| (void) | - onPrepared: |
| Callback for when preparation is complete. | |
The status callback protocol for the VOD media loader.
This protocol defines key event callbacks during the preparation and loading process of VOD media resources.
|
optionalrequired |
Cancellation callback.
This method is called when a loading task is canceled.
| vid | The VID of the canceled load. |
| index | The index of the canceled load. |
|
optionalrequired |
Completion callback.
This method is called when the specified loading task is completed.
| vid | The VID of the completed load. |
| index | The index of the completed load. |
|
optionalrequired |
Error callback.
| vid | The VID where the error occurred. |
| index | The loading index where the error occurred. |
| code | Error code. |
| msg | Error description. |
|
optionalrequired |
Error callback V2.
This method is called when an error occurs during the loading process.
| vid | The VID where the error occurred. |
| index | The loading index where the error occurred. |
| errorModel | Player error description model, refer to AVPErrorModel. |
|
optional |
Callback for when preparation is complete.
This method is called when media resource preparation is successful after calling prepareVidStsSource:] or prepareVidAuthSource:] .
| mediaInfo | The AVPMediaInfo object, which contains detailed information about the media. |