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

The status callback protocol for the VOD media loader. More...

#include "AliVodMediaLoader.h"

Inheritance diagram for <AliVodMediaLoaderStatusDelegate>:

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.

Detailed Description

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.

Method Documentation

◆ onCanceled:index:

- (void) onCanceled: (NSString *) vid
index: (int) index 
optionalrequired

Cancellation callback.

This method is called when a loading task is canceled.

Parameters
vidThe VID of the canceled load.
indexThe index of the canceled load.
See also
cancel:index:]

◆ onCompleted:index:

- (void) onCompleted: (NSString *) vid
index: (int) index 
optionalrequired

Completion callback.

This method is called when the specified loading task is completed.

Parameters
vidThe VID of the completed load.
indexThe index of the completed load.
See also
load:index:duration:]

◆ onError:index:code:msg:

- (void) onError: (NSString *) vid
index: (int) index
code: (int64_t) code
msg: (NSString *) msg 
optionalrequired

Error callback.

Parameters
vidThe VID where the error occurred.
indexThe loading index where the error occurred.
codeError code.
msgError description.
Deprecated
This method is deprecated. Use onErrorV2:index:errorModel:] instead.

◆ onErrorV2:index:errorModel:

- (void) onErrorV2: (NSString *) vid
index: (int) index
errorModel: (AVPErrorModel *) errorModel 
optionalrequired

Error callback V2.

This method is called when an error occurs during the loading process.

Parameters
vidThe VID where the error occurred.
indexThe loading index where the error occurred.
errorModelPlayer error description model, refer to AVPErrorModel.
See also
load:index:duration:]

◆ onPrepared:

- (void) onPrepared: (AVPMediaInfo *) mediaInfo
optional

Callback for when preparation is complete.

This method is called when media resource preparation is successful after calling prepareVidStsSource:] or prepareVidAuthSource:] .

Parameters
mediaInfoThe AVPMediaInfo object, which contains detailed information about the media.
See also
prepareVidStsSource:]
prepareVidAuthSource:]

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