adam-codersgu / supernova

A Kotlin-based Android application that allows the user to play music from their device while custom animations fall over the album artwork of the currently playing song.
0 stars 0 forks source link

Implement the onMetadataChanged callback #3

Closed adam-codersgu closed 1 year ago

adam-codersgu commented 1 year ago

The MediaControllerCompat.Callback() object has a method called onMetadataChanged, which notifies of changes to the currently loaded metadata in the media browser service. Currently, only the onPlaybackStateChanged callback method is implemented. The purpose of this ticket is to implement the onMetadataChanged callback also. In doing so, certain features such as changing the displayed information about the currently playing song could be enhanced. For more info about onMetadataChanged see https://developer.android.com/guide/topics/media-apps/audio-app/building-a-mediabrowser-client#sync-with-mediasession

adam-codersgu commented 1 year ago

Working on feature/implement-onmetadatachanged

adam-codersgu commented 1 year ago

Note to self - Need to check what happens to the UI when playback state changes to STOPPED. Is the metadata cleared? If not, will need to handle this, which may be most easily handled via the playbackstate callback

adam-codersgu commented 1 year ago

Completed and merged https://github.com/adam-codersgu/supernova/pull/20