Taoufik
Taoufik

Reputation: 259

How to use audioplayers package to keep playing song when the phone is closed?

I have a music app that works fine using audioplayer package, however when the phone's screen is closed, the music stop. How to keep playing the music when the phone is closed? Kindly help, thanks.

Upvotes: 0

Views: 192

Answers (1)

MANISH DAYMA
MANISH DAYMA

Reputation: 1240

There are some flutter packages that play audio in the background and they are controlled on the lock screen.

  1. audio_service
  2. audio_manager
  3. flutter_playout

Upvotes: 1

Related Questions