music_player 0.1.5
music_player: ^0.1.5

Flutter Android iOS

A flutter plugin to enable music playback with the native iOS and Android control centers.

Music Player #

Gitlab Status Pub Status

A music player flutter plugin that uses the native api to show the currently playing track with cover image and controls.

Example Notification

WARNING #

This plugin is still in development

Prerequisites #

Android:

iOS:

  • Swift support
  • iOS 10.* or higher, because of some newly introduced audio playback features

Usage #

A sample project can be found in the example folder.

Additional installation steps #

Android #

  • Set the minSdkVersion in android/app/build.gradle to 21
  • Migrate to AndroidX
  • Add Kotlin support (In AndroidStudio "Refactor > Migrate to AndroidX..")
  • Add the FOREGROUND_SERVICE permission and the MusicPlayerService to android/app/src/main/AndroidManifest.xml (see below)
<manifest xmlns:android="..." package="...">

    <!-- Add following permission -->
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

    <application> 
        ...
        <activity>...</activity>
        
        <!-- Add the following service -->
        <service
            android:name="live.exit.musicplayer.MusicPlayerService"
            android:enabled="true" />
    </application>
</manifest>

iOS #

TODO

20
likes
80
pub points
81%
popularity

A flutter plugin to enable music playback with the native iOS and Android control centers.

Repository (GitLab)
View/report issues

Documentation

API reference

Uploaders

martin.flucka@gmail.com
matenyo@gmail.com

License

MIT (LICENSE)

Dependencies

crypto, flutter, flutter_cache_manager, meta, path, path_provider

More

Packages that depend on music_player