jeromexiong / audio_manager

A flutter plugin for music playback, including notification handling.
MIT License
99 stars 54 forks source link

Can't play local audio files #7

Closed ratinggorilla closed 4 years ago

ratinggorilla commented 4 years ago

It always searches the file inside the flutter_assets directory. I have local files to play. How do I do that?

jeromexiong commented 4 years ago

You can directly view the example file, for example:

{
      "title": "Assets",
      "desc": "local assets playback",
      "url": "assets/audio.mp3",
      "cover": "assets/ic_launcher.png"
}