MediaPlayerState enum

The playback state.

Inheritance
Available extensions
Annotations
  • @JsonEnum(alwaysCreate: true)

Values

playerStateIdle → const MediaPlayerState

0: The default state. The media player returns this state code before you open the media resource or after you stop the playback.

playerStateOpening → const MediaPlayerState

1: Opening the media resource.

playerStateOpenCompleted → const MediaPlayerState

2: Opens the media resource successfully.

playerStatePlaying → const MediaPlayerState

3: The media resource is playing.

playerStatePaused → const MediaPlayerState

4: Pauses the playback.

playerStatePlaybackCompleted → const MediaPlayerState

5: The playback is complete.

playerStatePlaybackAllLoopsCompleted → const MediaPlayerState

6: The loop is complete.

playerStateStopped → const MediaPlayerState

7: The playback stops.

playerStateFailed → const MediaPlayerState

100: The media player fails to play the media resource.

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