#include "AliMediaLoader.h"
◆ cancel:
- (void) cancel: |
|
(NSString *) | url |
|
Cancel load.
Note: Downloaded files will not be deleted.
- Parameters
-
url | Video 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
-
url | Video file url |
duration | Load 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
-
url | Video file url |
duration | Load duration. Unit: millisecond |
defaultBandWidth | Load default bitrate for multi-bitrate HLS stream,the nearest stream will be selected. Unit:bps |
◆ pause:
- (void) pause: |
|
(NSString *) | url |
|
pause load.
- Parameters
-
url | Video file url. Nil or null, pause all. |
◆ resume:
- (void) resume: |
|
(NSString *) | url |
|
Resume load.
- Parameters
-
url | Video file url. Nil or null, resume all. |
◆ setAliMediaLoaderStatusDelegate:
◆ shareInstance
+ (instancetype) shareInstance |
|
|
|
The documentation for this class was generated from the following file: