PlayerState enum

Current state of the player.

Find more about it here.

Inheritance

Constructors

PlayerState(int code)
Returns the PlayerState from the given code.
const

Values

unknown → const PlayerState

Denotes State when player is not loaded with video.

const PlayerState(-2)
unStarted → const PlayerState

Denotes state when player loads first video.

const PlayerState(-1)
ended → const PlayerState

Denotes state when player has ended playing a video.

const PlayerState(0)
playing → const PlayerState

Denotes state when player is playing video.

const PlayerState(1)
paused → const PlayerState

Denotes state when player is paused.

const PlayerState(2)
buffering → const PlayerState

Denotes state when player is buffering bytes from the internet.

const PlayerState(3)
cued → const PlayerState

Denotes state when player loads video and is ready to be played.

const PlayerState(5)

Properties

code int
Code of the player state.
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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

values → const List<PlayerState>
A constant List of the values in this enum, in order of their declaration.