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

If the live window has a small duration, we currently end up setting the default start position to be right at the start of the window. This increases the chance of a BehindLiveWindowException. With this change we impose a minimum 5s gap between the start of the window and the default start position. If the window is *really* small (<10s) then doing this would push the default start position too close to the end of the window. We don't have much time to play with in either direction in this case, so we put the default start position in the middle of the window and hope for the best. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=132054802