mirror of
https://github.com/androidx/media.git
synced 2025-05-10 00:59:51 +08:00

1. The method kept track of the current period index to check if the next period is still in the correct period. This is unneccessary since we no longer use the period index but the actual uid in MediaPeriodId and mismatches are already detected by canKeepMediaPeriodHolder. 2. We updated the MediaPeriodIndfo twice: once in getFollowingMediaPeriodInfo and once in getUpdatedMediaPeriodInfo. That's confusing and difficult to follow. The only difference is that getUpdatedMediaPeriodInfo keeps the content position while getFollowingMediaPeriodInfo resets it. This is made more explicit for readability. 3. The durations compatibility check for all following periods was broken as it compared the same durations (partly due to the confusion caused by 2.) PiperOrigin-RevId: 230519295
ExoPlayer library
The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.