CastMediaPlayerState enum
Represents the current state of the media player.
This enum defines the different states that a Cast media player can be in during media playback and control operations.
- Inheritance
- Available extensions
Values
- unknown → const CastMediaPlayerState
-
Unknown or uninitialized state.
- idle → const CastMediaPlayerState
-
IDLE - Player has not been loaded yet or has finished playback.
- playing → const CastMediaPlayerState
-
Player is actively playing content.
- paused → const CastMediaPlayerState
-
Player is paused.
- buffering → const CastMediaPlayerState
-
Player is in PLAY mode but not actively playing content (currentTime is not changing). This typically occurs when the player is loading or buffering content.
- loading → const CastMediaPlayerState
-
Player is loading media.
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<
CastMediaPlayerState> - A constant List of the values in this enum, in order of their declaration.