You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am playing a local mp3 and to get its information,I've override onMediaMetadataChanged to get the title information like below:
override fun onMediaMetadataChanged(mediaMetadata: MediaMetadata) {
title = mediaMetadata.albumTitle.toString()
}
At first run, It's successfully showing the title of the currently playing item, but when I set the player.repeatmode to REPEAT_MODE_ONE and right after player goes back to 00:01 position, the onMediaMetadataChanged gets called again but right now all datas are null including the title. See image below:
It should retain all the datas from before. Any idea why this is happening?
Thanks!
The text was updated successfully, but these errors were encountered:
@Samrobbo - I think the condition here probably needs to be:
if (mediaItemTransitioned
|| !previousPlaybackInfo.staticMetadata.equals(newPlaybackInfo.staticMetadata)) {
else staticMetadata doesn't get correctly merged into newMediaMetadata in the case that newMediaMetadata has been updated by the code block above, but staticMetadata is unchanged. It would be good if we could get a fix in for the next minor release. Thanks!
I am playing a local mp3 and to get its information,I've override onMediaMetadataChanged to get the title information like below:
At first run, It's successfully showing the title of the currently playing item, but when I set the player.repeatmode to REPEAT_MODE_ONE and right after player goes back to 00:01 position, the
onMediaMetadataChanged
gets called again but right now all datas are null including the title. See image below:It should retain all the datas from before. Any idea why this is happening?
Thanks!
The text was updated successfully, but these errors were encountered: