audio_player_manager library

A comprehensive Flutter audio player manager package that provides a unified interface for multiple audio player implementations with advanced features like playlist management and caching.

Classes

AudioPlayerConfig
Configuration settings for audio player behavior.
AudioPlayerExceptions
Utility class for creating common audio player exceptions.
AudioPlayerFactory
Factory class for creating audio player instances.
AudioPlayerInterface
Abstract interface for audio player implementations.
AudioPlayersPlayer
AudioPlayers implementation of the AudioPlayerInterface.
AudioTrack
Represents an audio track with all its properties and metadata.
AudioUtils
Utility class for audio-related operations.
BaseCacheManagerInterface
Base interface for all cache managers Provides common functionality shared across all file types
BitrateRange
Represents a bitrate range for an audio format.
DefaultPlaylistService
Default implementation of playlist service with in-memory storage. For production use, implement this interface with proper persistence.
DurationUtils
Utility functions for duration formatting and manipulation.
JustAudioPlayer
JustAudio implementation of the AudioPlayerInterface. Note: This is a basic implementation. For production use, consider using AudioPlayersPlayer instead as it has better platform support.
PlaybackState
Represents the current playback state of an audio player.
Playlist
Represents a playlist containing multiple audio tracks.
PlaylistEvent
Playlist event types.
PlaylistService
Service for managing playlists and their persistence.
PlaylistStatistics
Statistics for a playlist.
ValidationResult
Result of a validation operation.

Enums

AudioCacheState
Represents different cache states for audio tracks.
AudioFormat
Represents different audio formats supported.
AudioInterruptionType
Represents different audio session interruption types.
AudioLoadingState
Represents different loading states for audio tracks.
AudioNotificationAction
Represents different audio notification actions.
AudioPlaybackState
Represents the current state of audio playback.
AudioPlayerFeature
Supported audio player features.
AudioPlayerType
Represents different types of audio player engines.
AudioQuality
Represents different audio quality levels.
AudioSessionCategory
Represents different audio session categories.
AudioSourceType
Represents different audio source types.
PlaylistEventType
Types of playlist events.
PlaylistExportFormat
Export formats for playlists.
PlaylistImportFormat
Import formats for playlists.
PlaylistSortCriteria
Criteria for sorting playlists.
RepeatMode
Represents different repeat modes for playlist playback.
ShuffleMode
Represents different shuffle modes for playlist playback.

Extensions

AudioFormatExtension on AudioFormat
Extension methods for AudioFormat enum.
AudioPlaybackStateExtension on AudioPlaybackState
Extension methods for AudioPlaybackState enum.

Exceptions / Errors

AudioCacheException
Exception thrown when audio cache operations fail.
AudioConfigurationException
Exception thrown when audio player configuration is invalid.
AudioFileException
Exception thrown when file-related audio operations fail.
AudioFormatException
Exception thrown when audio format is not supported.
AudioInitializationException
Exception thrown when audio player initialization fails.
AudioLoadException
Exception thrown when audio loading operations fail.
AudioMetadataException
Exception thrown when audio metadata operations fail.
AudioNetworkException
Exception thrown when network-related audio operations fail.
AudioNotificationException
Exception thrown when audio notification operations fail.
AudioPermissionException
Exception thrown when audio permissions are not granted.
AudioPlaybackException
Exception thrown when audio playback operations fail.
AudioPlayerException
Base class for all audio player exceptions.
AudioSeekException
Exception thrown when audio seek operations fail.
AudioSessionException
Exception thrown when audio session operations fail.
AudioTimeoutException
Exception thrown when audio player operations timeout.
PlaylistException
Exception thrown when playlist operations fail.