PlayerMode enum
This enum is meant to be used as a parameter of the AudioPlayer's constructor. It represents the general mode of the AudioPlayer.
Values
- MEDIA_PLAYER → const PlayerMode
-
Ideal for long media files or streams.
- LOW_LATENCY → const PlayerMode
-
Ideal for short audio files, since it reduces the impacts on visuals or UI performance.
In this mode the backend won't fire any duration or position updates. Also, it is not possible to use the seek method to set the audio a specific position.
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<
PlayerMode> - A constant List of the values in this enum, in order of their declaration.