PlayerPhase enum
互斥的播放阶段——"当前在做什么"的唯一事实来源,isPlaying 等
布尔状态全部由它派生。
Values
- idle → const PlayerPhase
-
PlayerBackend.initialize 之前的默认状态。
- opening → const PlayerPhase
-
native 侧正在准备 source;
openingStage标注子步骤。 - ready → const PlayerPhase
-
已准备好但还没有播放意图,首次
play()后变playing。 - playing → const PlayerPhase
-
正在渲染帧。
- paused → const PlayerPhase
-
用户主动暂停,与
buffering(非自愿)区分。 - buffering → const PlayerPhase
-
播放意图为真但解码器拿不到数据,见 NiumaPlayerValue.effectivelyPlaying。
- ended → const PlayerPhase
-
未 looping 时到达媒体结尾;looping 时 native 不应进入该状态。
- error → const PlayerPhase
-
终止错误,
errorMessage已设置。
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
values
→ const List<
PlayerPhase> - A constant List of the values in this enum, in order of their declaration.