florent37 / Flutter-AssetsAudioPlayer

Play simultaneously music/audio from assets/network/file directly from Flutter, compatible with android / ios / web / macos, displays notifications
https://pub.dartlang.org/packages/assets_audio_player
Apache License 2.0
757 stars 363 forks source link

Linux and Windows support #386

Open phimath opened 4 years ago

phimath commented 4 years ago

I see this supports Mac, is there any plan to support Linux and Windows as well?

florent37 commented 4 years ago

I don't know how to play music in windows and linux, maybe using C++ I am not personally able to develop it but If someone send me a pull request with this, it would be awesome :)

phimath commented 4 years ago

Yeah this would be out of my ability as well I think. For anyone who comes along though and wants to give it a go, this might be worth looking at:

C++. It calls native methods using dart's MethodChannel. It uses miniaudio from David Reid.

I wrote this simple wrapper in C++ around his library to get this working.

DomingoMG commented 3 years ago

I would like this to be a reality, @phimath this plugin uses Windows, Linux and allows to change the sound card. https://github.com/alexmercerind/flutter_audio_desktop/issues/3

I'm going to see if I can collaborate

alexmercerind commented 3 years ago

Hi there @florent37 !

Your library is the best playback library (because it is so easy to use) that I have ever seen.

Now, I have enough things ready to get Windows support on your this plugin.

You can dart_vlc plugin as a dependency, to bring Windows [Done] & Linux [Done] support to this project.

I've also talked to ryanheise (maintainer of just_audio) at this issue thread to get Windows support on his audio plugin as well. I'll try to fix/add more features as possible.

Thing to notice here is that, you might need to change to federated plugin model, as ryanheise has done to his plugin, he has discussed the license things on that issue thread (I don't really know about licensing etc.). Since, libVLC & libVLC++ are under LGPL 2.1, thus my project dart_vlc is under LGPL 2.1.

Greetings. Hope you like what I did.

Thanks to @DomingoMG for making this proposal.

EDIT: Linux support is also added now.

sail1369 commented 3 years ago

when is windows support coming?

alexmercerind commented 3 years ago

@sail1369 the day you support/contribute.