Code
Jukebox – Audio UI and manages independently media player

A lighweight android library that helps you focusing on your audio UI and manages independently media player under the hood.
It’s built on top of jetpack compose and media player.
The focus is on flexibility to change loading, error and audio views.
Setup
Gradle dependencies
maven { url 'https://jitpack.io' }
implementation("com.github.LouisDuboscq:Jukebox:0.3")
What can I do with Jukebox
Launch the Jukebox composable with the minimal parameters and get ready to use slider and audio player.
Customize audio view :
Customize loading view :
Customize error view :
Call play and pause, the commands understood by Jukebox
Set play when ready
By default, Jukebox does not play your audio when the media player has finished preparing it. You can force him to play when it’s ready :
Jukebox(
uri = uri,
playWhenReady = true,
commands = commands.receiveAsFlow()
)
Sample
