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
{{ message }}
Repository navigation
Custom extras in MediaMetadata not getting populated in MediaMetadataCompat #802
client use media3
val mediaMetadata = MediaMetadata.Builder().setExtras(bundleOf("my_custom_key" to "my value")).build()
val mediaItem = MediaItem.Builder().setMediaMetadata(mediaMetadata).build()
sdk use media
android.media.session.MediaController#registerCallback(android.media.session.MediaController.Callback)
android.media.session.MediaController.Callback#onMetadataChanged
MediaMetadataCompat does not contain "my_custom_key"
i found
androidx.media3.session.MediaUtils#convertToMediaMetadataCompat
MediaMetadata extras are not processed
Expected result
I saw this issue has been solved 756, but my problem is exactly the opposite of this one.
Actual result
MediaMetadataCompat does not contain "my_custom_key" in onMetadataChanged method
Activity
Populate `MediaMetadata.extras` to `MediaMetadataCompat`
rohitjoins commentedon Nov 17, 2023
Fix was submitted to the main branch 6df2408.
Populate `MediaMetadata.extras` to `MediaMetadataCompat`
Populate `MediaMetadata.extras` to `MediaMetadataCompat`