Android Kotlin Media Player

Jukebox is an android library that helps you focusing on your audio UI and manages independently the android.media.MediaPlayer under the hood.

Android Kotlin Media Player
Android Kotlin Media Player

Tired of spending hours coding your media player? Let Jukebox handle it for you - so you can focus on what you do best: building beautiful UIs with Jetpack Compose!

Introducing Jukebox, an 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. And the focus is on flexibility to change loading, error and audio views.

Here are more infos on it :

Launch the Jukebox composable

Launch the Jukebox composable with the minimal parameters and get ready to use slider and audio player.



Jukebox library

Here’s the result

Jukebox preview

As I said, the goal is to provide an abstraction of audio management and easy to customize audio view.

Change the audio view

Pass parameters to Jukebox

And here’s the result :



Updated preview of jukebox component

These two views, slider and circular loading with action buttons are just sample but you can build anything you want.

Jukebox definition

If you want to take a look at the Jukebox definition, here it is :

Component definition

Call play and pause

How to call play and pause, which are the commands understood by Jukebox :

Commands to play and pause jukebox and media player

We open sourced our library on Github, you can find it here.

If you want to learn more about Kotlin Multiplatform and Compose multiplatform find our best work here.