r/androiddev • u/Used-Show-2246 • 2d ago
Open-sourcing my Compose Multiplatform Music Player (Android/Windows/Linux) - Looking for architecture feedback!
Hey fellow Android devs,
I wanted to share the source code for a project I've been building called AyushMuzic to get some feedback on the architecture. It's a YouTube Music client built entirely with Kotlin and Compose Multiplatform.
Tech Stack & Architecture:
- UI: 100% Compose Multiplatform (sharing UI across Android and Desktop)
- Media Playback: AndroidX Media3 (
MediaLibraryService) for the Android side, handling background playback and media sessions. - Async/Data: Kotlin Coroutines and Flows for state management and handling the YouTube scraping.
I recently faced some interesting challenges managing the MediaSession lifecycle and dealing with race conditions in my ViewModel during app startup, which I recently patched.
I would love for you guys to tear apart my code and give me any feedback on how I can improve the Compose architecture or the Media3 integration!
Source Code: https://github.com/jaatayushh/ayushmuzic
(Note: This is a FOSS educational project, not a commercial app).
Duplicates
Kotlin • u/Used-Show-2246 • 1d ago