The media item needs to be assigned to `Window.mediaItem` in `CastTimeline.setWindow`. For this the `MediaItem` needs to be available in the timeline. When a `MediaItem` is passed to the `set/addMediaItems` method, we can't yet know the Cast `MediaQueueItem.itemId` that is generated on the device and arrives with an async update of the `RemoteMediaClient` state. Hence in the `CastTimelineTracker`, we need to store the `MediaItem` by Casts's `MediaItem.contentId`. When we then receive the updated queue, we look the media item up by the content ID to augment the `ItemData` that is available in the `CastTimeline`. Issue: androidx/media#25 Issue: google/ExoPlayer#8212 #minor-release PiperOrigin-RevId: 460325235 (cherry picked from commit 02e1484e)
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| av1 | Loading commit data... | |
| cast | Loading commit data... | |
| cronet | Loading commit data... | |
| ffmpeg | Loading commit data... | |
| flac | Loading commit data... | |
| ima | Loading commit data... | |
| leanback | Loading commit data... | |
| media2 | Loading commit data... | |
| mediasession | Loading commit data... | |
| okhttp | Loading commit data... | |
| opus | Loading commit data... | |
| rtmp | Loading commit data... | |
| vp9 | Loading commit data... | |
| workmanager | Loading commit data... | |
| README.md | Loading commit data... |