AudioPlayerService class
An implementation of AudioPlayer
with JustAudioBackground
for notification handelding
and AudioSession
to tell the system how to deal with the played audio , it provides a singleton
that all widgets can depend on to access the audio Player events and callbacks .
Constructors
- AudioPlayerService()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- player → AudioPlayer
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addToPlayList(
ConcatenatingAudioSource _playlist, List< AudioSource> list) → void - adds List<AudioSource> to current playlist at the bottom
-
addToPlayListTop(
ConcatenatingAudioSource _playlist, List< AudioSource> list) → void - inserts List<AudioSource> to the current playist at the top while maintaing the index of current selected item
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
playAudios(
ConcatenatingAudioSource _playlist) → Future< void> -
plays a list of audios given a
ConcatenatingAudioSource
playlist. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited