FlutterAliPlayerMediaLoader class

Constructors

FlutterAliPlayerMediaLoader.new()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel(String url) → void
取消加载
load(String url, int duration) → void
开始加载文件
loadWithBandWidth(String url, int duration, int? bandWidth) → void
开始加载文件 + bandwidth
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause(String url) → void
暂停加载
resume(String url) → void
恢复加载
setOnCancel(OnCancel? cancel) → void
MediaLoader 设置取消监听 OnCancel 预加载取消监听
setOnCompletion(OnCompletion? onCompletion) → void
MediaLoader 设置完成监听
setOnError(OnError? error) → void
MediaLoader 设置错误监听
setOnErrorV2(OnErrorV2? error) → void
MediaLoader 设置错误V2监听(推荐) OnErrorV2
setOnLoadStatusListener(OnCompletion? onCompletion, OnCancel? onCancel, OnError? onError, OnErrorV2? OnErrorV2) → void
监听预加载相关回调 onCompletion: 完成回调 onCancel: 取消回调 onError: 错误回调
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

eventChannel EventChannel
getter/setter pair
methodChannel MethodChannel
getter/setter pair