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

Failing To Update LockScreen Meta Data #76

Closed Tr736 closed 1 year ago

Tr736 commented 1 year ago

Currently seeing an issue where i cannot update the image for the lock screen

I can see that the passed info i.e we have a title, artis and artwork but nothing seems to update on the lockscreen.

I have tried setting player.automaticallyUpdateNotificationMetadata to both true and false

    @MainThread
    fun updateNotificationMetadata(title: String?, artist: String?, artwork: String?) {
        player.notificationManager.notificationMetadata = NotificationMetadata(title, artist, artwork)
    }

Please could you advise or help?

lovegaoshi commented 1 year ago

hi, i wonder if https://github.com/lovegaoshi/KotlinAudio/commit/7a3d90b5b7b548e45b8b54ffcf62eac5c795bc14 will help on this? notificationManager does not set the album art to the MediaDescriptionCompat item by default.

Tr736 commented 1 year ago

i managed to fix this thanks