Kotlin MediaSession and MediaButton implementation (simple mp3 player)
Playlist data is parsed from JSON file
Disclaimer: Don't use this code for the real projects! It was created just for DEMO purposes. See best practices https://developer.android.com/guide/topics/media-apps/audio-app/building-an-audio-app
See demo https://youtu.be/NYMURgYAibg