alexmercerind / flutter_audio_desktop

[WIP] An 🎵 audio playback library for Flutter Desktop. Supports Windows & Linux. Based on miniaudio.
MIT License
53 stars 18 forks source link

Support asset files #20

Closed 12people closed 3 years ago

12people commented 3 years ago

It seems like right now, only local files are supported, not asset files. (At the very least, I'm not able to get asset files working.)

Would you be willing to add asset file playing as a feature? Or, if this functionality exists already, could you add a mention to the README or the example project?

Thank you for this project!

alexmercerind commented 3 years ago

Okay... This issue is fixed under vnext branch.

Sorry for the delay. I'm back to development.

alexmercerind commented 3 years ago

Now plugin supports assets.

Load assets into AudioPlayer as follows:

audioPlayer.load(
  await AudioSource.fromAsset(
    'assets/audio.MP3',
  ),
);

Supported on both Windows & Linux.