Search packages, repositories and app categories

audio_service cover
Package detailsv0.18.19

audio_service

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

AndroidiOSWebmacOS
30-day downloads
336K
Likes
1.3K
Pub points
140

Install package

flutter pub add audio_service

Package Overview

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

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

Categories

Dependencies

Dependency list 7 items

Source repository

Projects using this package