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
Return placeholder metadata from MediaMetadataProvider.getMetadata
Kick off the async operation, which will to place the metadata into some kind of cache
Call invalidateMediaSessionMetadata when the async operation completes
Return real metadata from MediaMetadataProvider.getMetadata, assuming the player is still playing the same media item (probably implemented by having the cache be keyed on an identifier)
We should more clearly document this somehow. The best place would be to document this on getMetadata directly. If we write a web page about MediaSessionConnector, it would be good to document there also.
The text was updated successfully, but these errors were encountered:
To provide metadata asynchronously, you can:
MediaMetadataProvider.getMetadata
invalidateMediaSessionMetadata
when the async operation completesMediaMetadataProvider.getMetadata
, assuming the player is still playing the same media item (probably implemented by having the cache be keyed on an identifier)We should more clearly document this somehow. The best place would be to document this on
getMetadata
directly. If we write a web page aboutMediaSessionConnector
, it would be good to document there also.The text was updated successfully, but these errors were encountered: