audioplayers_platform_interface library

Classes

AudioContext
An Audio Context is a set of secondary, platform-specific aspects of audio playback, typically related to how the act of playing audio interacts with other features of the device. AudioContext is containing platform specific configurations: AudioContextAndroid and AudioContextIOS.
AudioContextAndroid
A platform-specific class to encapsulate a collection of attributes about an Android audio stream.
AudioContextIOS
A platform-specific class to encapsulate a collection of attributes about an iOS audio stream.
AudioEvent
Event emitted from the platform implementation.
AudioplayersPlatformInterface
The interface that implementations of audioplayers must implement.
EventChannelAudioplayersPlatformInterface
EventChannelGlobalAudioplayersPlatformInterface
GlobalAudioEvent
Event emitted from the platform implementation.
GlobalAudioplayersPlatformInterface
MethodChannelAudioplayersPlatformInterface
MethodChannelGlobalAudioplayersPlatformInterface

Enums

AndroidAudioFocus
There are four focus request types. A successful focus request with each will yield different behaviors by the system and the other application that previously held audio focus. See https://developer.android.com/reference/android/media/AudioFocusRequest
AndroidAudioMode
The audio mode encompasses audio routing AND the behavior of the telephony layer. Therefore this flag should only be used by applications that replace the platform-wide management of audio settings or the main telephony application. In particular, the inCall mode should only be used by the telephony application when it places a phone call, as it will cause signals from the radio layer to feed the platform mixer.
AndroidContentType
"what" you are playing. The content type expresses the general category of the content. This information is optional. But in case it is known (for instance movie for a movie streaming service or music for a music playback application) this information might be used by the audio framework to selectively configure some audio post-processing blocks.
AndroidUsageType
"why" you are playing a sound, what is this sound used for. This is achieved with the "usage" information. Examples of usage are media and alarm. These two examples are the closest to stream types, but more detailed use cases are available. Usage information is more expressive than a stream type, and allows certain platforms or routing policies to use this information for more refined volume or routing decisions. Usage is the most important information to supply in AudioContextAndroid and it is recommended to build any instance with this information supplied.
AudioEventType
AVAudioSessionCategory
This is a Dart representation of the equivalent enum on Swift.
AVAudioSessionOptions
This is a Dart representation of the equivalent enum on Swift.
GlobalAudioEventType
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.