media/extensions/cast/src/test
bachinger 05e42ebb07 Use the public MediaItem in the timeline of CastPlayer
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 02e1484ebc)
2022-07-11 23:22:27 +00:00
..
java/com/google/android/exoplayer2/ext/cast Use the public MediaItem in the timeline of CastPlayer 2022-07-11 23:22:27 +00:00
AndroidManifest.xml Use versioned manifest in all Robolectric tests. 2019-05-21 13:51:43 +01:00