#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 |
◆ load:duration:defaultResolutionProduct:
| - (void) load: |
|
(NSString *) | url |
| duration: |
|
(int64_t) | duration |
| defaultResolutionProduct: |
|
(int64_t) | defaultResolutionProduct |
Start load.
Asynchronous loading. You can load more than one at a time.
- Parameters
-
| url | Video file url |
| duration | Load duration. Unit: millisecond |
| Load | default resolution corresponding to the product of width and height when loading multi-bitrate HLS streams. The resolution closest to this value will be selected. For example, if the value 1920 * 1080 = 2073600 is provided, the resolution closest to the width of 1920 and height of 1080 will be preloaded. |
◆ 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: