A flutter plugin for music playback, including notification handling

You are currently viewing A flutter plugin for music playback, including notification handling
Audio Manager


A flutter plugin for music playback, including notification handling.

This plugin is developed for iOS based on AVPlayer, while android is based on mediaplayer

Audio Manager
Audio Manager


Add the following permissions in the info.plist file

  • ⚠️ Some methods are invalid in the simulator, please use the real machine


Since Android9.0 (API 28), the application disables HTTP plaintext requests by default. To allow requests, add android:usesCleartextTraffic="true" in AndroidManifest.xml

  • ⚠️ Android minimum supported version 23 (app/build.gradle -> minSdkVersion: 23)
  • ⚠️ Android minimum supported Gradle version is 5.4.1 (gradle-wrapper.properties -> gradle-5.4.1-all.zip)

How to use?

The audio_manager plugin is developed in singleton mode. You only need to getAudioManager.instance in the method to quickly start using it.

See also  Record Audio and Store it Locally in Flutter

Quick start

you can use local assetsdirectory file or network resources

// Initial playback. Preloaded playback information
		// "network format resource"
		// "local resource (file://${file.path})"
		desc: "desc",
		// cover: "network cover image resource"
		cover: "assets/ic_launcher.png")
	.then((err) {

// Play or pause; that is, pause if currently playing, otherwise play

// events callback
AudioManager.instance.onEvents((events, args) {
	print("$events, $args");


This project is developed by jeromexiong
Download this project from the below link.
You can visit original source page from the below link:

Spread the love

Leave a Reply