PlayerPlaybackStatus enum

Status of the player, reflecting the current playback lifecycle.

State machine (typical transitions):

                  startPlay
    IDLE ──────────────────▶ LOADING
      ▲                         │
      │                   play succeeded
  stopPlay                          │
   connection lost                  │
      │                         ▼
      │◀─────────────────────PLAYING ◀────────────────┐
      │                         │                     │
      │                         │                     │
      │                     buffering         recover succeeded
      │                         │                     │
      │                         ▼                     │
      └──────────────────────LOADING ─────────────────┘

Tip: IDLE is the initial state; it is also returned to after calling stopPlay. The buffering / auto-recovery process reuses LOADING, without distinguishing "first loading" from "re-buffering".

Inheritance
Available extensions

Values

idle → const PlayerPlaybackStatus

Idle. Initial state, or playback stopped / connection lost.

const PlayerPlaybackStatus(0)
loading → const PlayerPlaybackStatus

Loading. Establishing the connection or buffering data; the video has not started or is temporarily stalled.

const PlayerPlaybackStatus(1)
playing → const PlayerPlaybackStatus

Playing. The link is normal and the video is playing smoothly.

const PlayerPlaybackStatus(2)

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
value → int
final

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<PlayerPlaybackStatus>
A constant List of the values in this enum, in order of their declaration.