audioplayers library

Classes

AssetSource
Source representing the path of an application asset in your Flutter "assets" folder. Note that a prefix might be applied by your AudioPlayer's audio cache instance.
AudioCache
This class represents a cache for Local Assets to be played.
AudioContext
AudioContextAndroid
AudioContextConfig
This class contains flags to control several secondary, platform-specific aspects of audio playback, like how this audio interact with other audios, how is it played by the device and what happens when the app is backgrounded. However, note that each platform has its nuances on how to configure audio. This class is a generic abstraction of some parameters that can be useful across the board. Its flags are simple abstractions that are then translated to an AudioContext containing platform specific configurations: AudioContextAndroid and AudioContextIOS. If these simplified flags cannot fully reflect your goals, you must create an AudioContext configuring each platform separately.
AudioContextIOS
AudioPlayer
This represents a single AudioPlayer, which can play one audio at a time. To play several audios at the same time, you must create several instances of this class.
BytesSource
Source containing the actual bytes of the media to be played.
DeviceFileSource
Source representing the absolute path of a file in the user's device.
ForPlayer<T>
GlobalPlatformInterface
MethodChannelGlobalPlatform
Source
A generic representation of a source from where audio can be pulled.
UrlSource
Source representing a remote URL to be played from the Internet. This can be an audio file to be downloaded or an audio stream.

Enums

AndroidAudioFocus
AndroidContentType
AndroidUsageType
AVAudioSessionCategory
This is a Dart representation of the equivalent enum on Swift.
AVAudioSessionOptions
This is a Dart representation of the equivalent enum on Swift.
LogLevel
PlayerMode
This represents what kind of native implementation is used by the player.
PlayerState
Indicates the state of the audio player.
ReleaseMode
This enum is meant to be used as a parameter of setReleaseMode method.