mirror of
https://github.com/androidx/media.git
synced 2025-05-12 10:09:55 +08:00

It is possible for playback to be stuck when there is failure in loading further data, while the player is required to load more due to the buffered duration being under `DefaultLoadControl.bufferForPlayback`. Therefore, we check if there is any loading error in `isLoadingPossible`, so that the player will allow the playback of the existing data rather than waiting forever for the data that can never be loaded. Issue: androidx/media#1571 PiperOrigin-RevId: 665801674 (cherry picked from commit 351593a2504c9185638637a69f8dd0caf4aa20db)