Cast Extension Artwork metadata not working
See original GitHub issueAs of the recent deprecation of CastPlayer.loaditem() , I have updated to using com.google.android.exoplayer2.MediaMetadata.
Previously, I would add artwork like this and it would appear in the system notification media item as well as the Cast Player ExpandedControlsActivity.
val movieMetadata = MediaMetadata(MediaMetadata.MEDIA_TYPE_MOVIE)
movieMetadata.addImage(WebImage(Uri.parse(posterImage)))
I am now attempting to use the functions:
movieMetadata.setArtworkUri() movieMetadata.setArtworkData()
But they do not result in the image being shown.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Google cast: How to show metadata in default media player?
Does anybody know how implement this? Below code plays the audio but the player does not show any image or other metadata. Initialization:...
Read more >Metadata and Cover Art - Firecore
Correcting Metadata Inevitably there will be times when incorrect metadata and cover art is downloaded for one or more files. The good news...
Read more >Retrieving media metadata | Apple Developer Documentation
This class provides a simple, consistent interface to work with metadata, regardless of the underlying container and metadata formats. Load an asset's metadata....
Read more >Namespace: cast - Google Developers
Describes the state of a currently running Cast application. Normally, these objects should not be created by the client.
Read more >Local Media Assets - Movies - Plex Support
The scanners and metadata agents used by Plex will work best when your ... Custom Poster artwork will be detected and used if...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, I appreciate the detailed explanation.
Yes I have done this part.
Yes, I conceptually understand the back and forth that needs to happen.
I do accept the apologies but yes it does cause more effort. It is something Google keeps doing… for the same reason I am waiting to update billing library because it also has breaking changes. But I digress.
Here I tried following the example you gave in this other thread https://github.com/google/ExoPlayer/issues/7915 … but it only partially works, nowadays… that was written a while ago and some more things have changed 😃 … for example the key method
.getTag()
doesn’t work anymore… that, too, has been since deprecated… how quickly things change! I tried replacing it with just the.tag
property… which compiles… only to figure out that the wholeplaybackProperties
(orlocalConfiguration
- they are basically the same stuff, right?) come up as a NULL object at runtime??.. I have not understood why…return (MediaQueueItem)mediaItem.playbackProperties.getTag();
… so my coverter doesn’t really convert, so far… I managed to wire up the basics because I have the stream URL in another field
mediaId
of theMediaItem
object… so in the converter I was able to rebuild a basic MediaQueueItem object… but indeed it’s not really a ‘conversion’ and I lose all other info/metadata which are needed down the road by the UX…would you be so kind to point me at a newer example of working code for such a custom converter that would work with the 2.16 version?
You are most probably right… once I manage to have a working converter we will be able to confirm if things are picked up again by the UX elements or not.
Thanks a lot,
I don’t have more info at the moment and I have been busy with higher business priorities… for now I postponed the upgrade and kept the old but working stuff.