AliyunPlayer v6.21.0
Aliyun Player API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
AliMediaLoader Class Reference

#include "AliMediaLoader.h"

Inheritance diagram for AliMediaLoader:

Instance Methods

(void) - cancel:
 Cancel load.
 
(void) - load:duration:
 Start load.
 
(void) - load:duration:defaultBandWidth:
 Start load.
 
(void) - pause:
 pause load.
 
(void) - resume:
 Resume load.
 
(void) - setAliMediaLoaderStatusDelegate:
 , set the status Delegate
 

Class Methods

(instancetype) + shareInstance
 

Method Documentation

◆ cancel:

- (void) cancel: (NSString *) url

Cancel load.

Note: Downloaded files will not be deleted.

Parameters
urlVideo file url. Nil or null, cancel all.

◆ load:duration:

- (void) load: (NSString *) url
duration: (int64_t) duration 

Start load.

Asynchronous loading. You can load more than one at a time. If preload multi-bitrate HLS stream, lowest stream is default, you can use another preload function which support specify bandwidth.

Parameters
urlVideo file url
durationLoad duration. Unit: millisecond

◆ load:duration:defaultBandWidth:

- (void) load: (NSString *) url
duration: (int64_t) duration
defaultBandWidth: (int) defaultBandWidth 

Start load.

Asynchronous loading. You can load more than one at a time.

Parameters
urlVideo file url
durationLoad duration. Unit: millisecond
defaultBandWidthLoad default bitrate for multi-bitrate HLS stream,the nearest stream will be selected. Unit:bps

◆ pause:

- (void) pause: (NSString *) url

pause load.

Parameters
urlVideo file url. Nil or null, pause all.

◆ resume:

- (void) resume: (NSString *) url

Resume load.

Parameters
urlVideo file url. Nil or null, resume all.

◆ setAliMediaLoaderStatusDelegate:

- (void) setAliMediaLoaderStatusDelegate: (id< AliMediaLoaderStatusDelegate >) delegate

, set the status Delegate

See also
AliMediaLoaderStatusDelegate

◆ shareInstance

+ (instancetype) shareInstance

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