-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the role of MediaMetadata.displayTitle in media3? #927
Comments
Thanks for your report. Media3 is using So as a Media3 user you can just use This behavior seems to be sensible to me. Are you using different values for |
@marcbaechinger
In my case, I only set a value for displayTitle and not for title. There is no particular reason, I simply replaced from ExoPlayer2 to Media3. ExoPlayer2 val mediaMetadataCompatBuilder = MediaMetadataCompat.Builder().apply {
putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE, playable.title)
putString(MediaMetadataCompat.METADATA_KEY_DISPLAY_SUBTITLE, playable.subtitle)
putString(MediaMetadataCompat.METADATA_KEY_ART_URI, playable.artUri)
} Media3 val metadata = MediaMetadata.Builder()
.setDisplayTitle(playable.title)
.setSubtitle(playable.subtitle)
.setArtworkUri(playable.artUri)
.build() This worked fine most of the cases, but some devices (Xperia, OPPO, etc.) were crashing because they could not get the title from the MediaMetadata.
I think this is a bug on the custom os side because
I understand. Maybe my fixes in #928 will help in the migration from ExoPlayer2 to Media3, but I think it's not necessary. |
Or, if |
Before media3, Now Playing Card media title refers METADATA_KEY_DISPLAY_TITLE like this.
But in media3, when I set displayTitle to MediaMetadata, it seems not working. here is reproducible example.
yt8492@9c959e2
Is this behavior correct? If true, what role is displayTitle in media3?
The text was updated successfully, but these errors were encountered: