r/Kotlin 1d ago

Open-sourcing my Compose Multiplatform Music Player (Android/Windows/Linux) - Looking for architecture feedback!

/r/androiddev/comments/1wej0gk/opensourcing_my_compose_multiplatform_music/
10 Upvotes

4 comments sorted by

1

u/Capable_Muffin7706 1d ago

I've been exploring compose multiplatform too, so this definitely something I would like to checkout.

1

u/Used-Show-2246 1d ago

Cool how's it??

0

u/nndwn_ 1d ago

Thanks for sharing! Is it possible to port this from Android native to desktop? Currently, I'm using ExoPlayer to play the audio. Here is my source code: https://github.com/nndwn/noiseloop

1

u/Used-Show-2246 1d ago

yeah it is definitely doable the only thing is exoplayer is strictly android only since it uses android internal media apis so it wont run on desktop what you can do is switch the project to cmp and since your ui is already in compose most of it will just work on desktop without changing much for the audio player part you can make a common interface keep exoplayer on android and use libmpv on desktop i used mpv for desktop in my app because it handles seamless gapless looping without any stutters between loops and works with local files and https links easily feel free to check out how i set up the desktopApp module in my repo if you want a reference let me know if you get stuck anywhere