FlutterAliMediaLoaderV2 class
Constructors
- FlutterAliMediaLoaderV2()
-
获取单例
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onCanceled ↔ dynamic Function(String taskId, String urlOrVid)?
-
AliMediaLoaderV2 任务取消监听
getter/setter pair
- onCompleted ↔ dynamic Function(String taskId, String urlOrVid)?
-
AliMediaLoaderV2 任务完成监听
getter/setter pair
- onError ↔ dynamic Function(ErrorInfo)?
-
AliMediaLoaderV2 异常回调
getter/setter pair
- onEventError ↔ dynamic Function(dynamic error)?
-
EventChannel 错误回调 (可选)
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addTask(
BaseVideoSource videoSource) → Future< String> - 添加任务
-
addUrlTask(
{required String videoSource}) → Future< String> - 添加任务
-
addVidAuthTask(
{required String vid, required String playAuth}) → Future< String> - 添加任务
-
addVidStsTask(
{required String vid, required String accessKeyId, required String accessKeySecret, required String securityToken}) → Future< String> - 添加任务
-
cancelTask(
String taskId) → void - 取消任务
-
dispose(
) → void - 释放资源,取消事件订阅
-
getPreloadConfig(
) → Future< PreloadConfig> - 获取 PreloadConfig
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseTask(
String taskId) → void - 恢复任务
-
resetPreloadConfig(
) → void - 重建 PreloadConfig,使其回到初始值
-
resumeTask(
String taskId) → void - 恢复任务
-
setPreloadConfig(
PreloadConfig config) → void - 设置 PreloadConfig
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited