PlayerMode enum
This represents what kind of native implementation is used by the player.
Currently, this distinction is only relevant for Android.
Values
- mediaPlayer → const PlayerMode
-
Ideal for long media files or streams.
- lowLatency → 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, position or playback completion events. This means you are responsible for stopping the player. Also, it is not possible to use the seek method to set the audio to a specific position.
Properties
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.