mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

The flag in ExoPlayer.prepare is documented as keeping the current window index and window position. We are currently using the current period UID and period position instead. This causes problems when the media source is changed but the position is not reset. Using the initial seek position instead ensures we actually use the window index and position. Issue:#5520 PiperOrigin-RevId: 236101024