AudioPlayerController class
Properties
-
audioPositions
→ Map<
String, Duration> -
Map to store the last playback position for each audio path
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getSavedPosition(
String audioPath) → Duration? - Get the saved position for an audio path
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
AudioPlayerPlusState player) → void - Register a player. If another one is already playing, pause it and save its position.
-
resetPosition(
String audioPath) → void - Reset the saved position for an audio path (used when stopping)
-
savePosition(
String audioPath, Duration position) → void - Save the position for an audio path (used when pausing)
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
AudioPlayerPlusState player) → void - Unregister the player if it's the current one and save its position.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → AudioPlayerController
-
AudioPlayerController getter instance
no setter