PlayerLoadFailureReason class
加载失败原因常量(与 iOS/Android 原生上报的 reason 字符串一致)。
宿主监听 error 事件后读取 params['detail']['reason'] 与之比较,
即可对断网/弱网/超时分别展示「加载失败/点击重试」等提示。
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- loadTimeout → const String
- 起播超时(loading 超过阈值仍无首帧,即加载播放地址失败)。
- stallTimeout → const String
- 播放中途卡顿超时(buffering 超过阈值仍未恢复)。