FLUTTER ECOSYSTEM

audio_service

Flutter plugin to play audio in the background while the screen is off.

audio_service cover
Latest version
0.18.19
30-day downloads
217K
Likes
1.3K
Pub points
140

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

Audio_Service is a Flutter plugin that enables seamless audio playback in the background, even when the screen is off or the app is minimized. It supports Android, iOS, Web, and macOS, offering a consistent API across platforms. The package handles media controls, notifications, and system-level audio focus, making it ideal for music players, podcasts, and audiobooks. It integrates with the device's lock screen and system-wide media controls, ensuring a smooth user experience. Developers can customize playback behavior, manage queues, and respond to playback events through a reactive stream interface.

Use cases
  • Background audio playback
  • Music player apps
  • Podcast applications
  • Audiobook players
  • Media control integration
Key features
  • Cross-platform support
  • Background playback
  • Media notification controls
  • System audio focus management
  • Reactive playback state streams
Suitable for
  • Media-focused Flutter apps
  • Apps requiring persistent audio playback
  • Developers building music or podcast clients
Considerations
  • Requires platform-specific setup
  • May need additional permissions on some platforms
  • Complexity increases with advanced features like gapless playback
Supported platformsAndroidiOSWebmacOS

Install package

flutter pub add audio_service

Categories

Dependencies

Dependency list 7 items

Source repository

Related projects