doublesymmetry / KotlinAudio

KotlinAudio is an Android audio player written in Kotlin, making it simpler to work with audio playback from streams and files.
Apache License 2.0
44 stars 70 forks source link

feat: Android Auto Support #80

Closed lovegaoshi closed 1 year ago

lovegaoshi commented 1 year ago

This PR compliments RNTP's AA support PR.

Here the mediaSession's token is exposed in BaseAudioPlayer, and IconBitmap is defined in NotificationManager. Together they enable media playback control via AA and show the album art.

lovegaoshi commented 1 year ago

new changes: MediaSession.Callback is now added to handle media controls from AA