mirror of
https://github.com/androidx/media.git
synced 2025-05-11 01:31:40 +08:00

Only enable multi-window mode when the duration of every period in the timeline is known. Also, remove the warning logged when there are too many windows as it doesn't add much. The player's current period index was not masked while there were unacknowledged seeks. This led to the displayed position jumping, between when seekTo was called (after which the position would be masked but not the period index) and the seek being acknowledged (at which point the time bar's position would jump back to the seek position, due to the period index being resolved). Mask the period index, like the window index, to fix this behavior. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=152116040