mirror of
https://github.com/androidx/media.git
synced 2025-05-07 15:40:37 +08:00

DASH + SS previously had a ridiculously complicated chunk replacement mechanism in resumeFromBackOff. It also didn't allow replacement of the first media chunk in the queue, even though it's possible to remove it in the case that no corresponding samples have been consumed. This CL moves DASH + SS to the simpler model used in the HLS implementation, where the chunk source has a single opportunity to cancel (and hence later replace) the chunk when the load error occurs. With this change comes the ability to replace the first media chunk in the queue in all cases where it's possible to do so. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=118573418