AliyunPlayer v7.10.0
Aliyun Player API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
<AliMediaLoaderStatusDelegate> Protocol Reference

The delegate for media file loading status callbacks. More...

#include "AliMediaLoader.h"

Inheritance diagram for <AliMediaLoaderStatusDelegate>:

Instance Methods

(void) - onCanceled:
 Canceled callback.
(void) - onCompleted:
 Completed callback.
(void) - onError:code:msg:
 Error callback.
(void) - onErrorV2:errorModel:
 Error callback V2.

Detailed Description

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.

Method Documentation

◆ onCanceled:

- (void) onCanceled: (NSString *) url
optionalrequired

Canceled callback.

This method will be called when a loading task is canceled. This callback is triggered by cancel:] .

Parameters
urlThe URL of the loading task that was canceled.
See also
cancel:]

◆ onCompleted:

- (void) onCompleted: (NSString *) url
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.

Parameters
urlThe URL of the file that has finished loading.
See also
load:duration:]
load:duration:defaultBandWidth:]
load:duration:defaultResolutionProduct:]

◆ onError:code:msg:

- (void) onError: (NSString *) url
code: (int64_t) code
msg: (NSString *) msg 
optional

Error callback.

This method will be called when an error occurs during file loading.

Parameters
urlThe loading URL where the error occurred.
codeError code. -300 means the same URL has been loaded; -301 means the local cache is not enabled, causing the preload to fail.
msgError description message.
Deprecated
This method is deprecated. Use onErrorV2:errorModel:] instead.

◆ onErrorV2:errorModel:

- (void) onErrorV2: (NSString *) url
errorModel: (AVPErrorModel *) errorModel 
optionalrequired

Error callback V2.

This method will be called when an error occurs during file loading. This callback is triggered by a load operation.

Parameters
urlThe loading URL where the error occurred.
errorModelThe player error description model, which contains more detailed error information. Refer to the definition of AVPErrorModel.
See also
load:duration:]
load:duration:defaultBandWidth:]
load:duration:defaultResolutionProduct:]

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