Skip to content

Custom extras in MediaMetadata not getting populated in MediaMetadataCompat #802

Description

@zzmgoing

Version

Media3 1.1.1

More version details

No response

Devices that reproduce the issue

All

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

  1. client use media3
    val mediaMetadata = MediaMetadata.Builder().setExtras(bundleOf("my_custom_key" to "my value")).build()
    val mediaItem = MediaItem.Builder().setMediaMetadata(mediaMetadata).build()
  2. 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"
  3. 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

Media

Not applicable

Bug Report

  • You will email the zip file produced by adb bugreport to [email protected] after filing this issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions