mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Relax PlaybackStuck criteria to only when playWhenReady is true
This commit is contained in:
parent
4d925bde81
commit
24ea6c4c14
@ -1225,7 +1225,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
}
|
||||
if (!playbackInfo.isLoading
|
||||
&& playbackInfo.totalBufferedDurationUs < PLAYBACK_BUFFER_EMPTY_THRESHOLD_US
|
||||
&& isLoadingPossible(queue.getLoadingPeriod())) {
|
||||
&& isLoadingPossible(queue.getLoadingPeriod())
|
||||
&& shouldPlayWhenReady()) {
|
||||
// The renderers are not ready, there is more media available to load, and the LoadControl
|
||||
// is refusing to load it (indicated by !playbackInfo.isLoading). This could be because the
|
||||
// renderers are still transitioning to their ready states, but it could also indicate a
|
||||
|
Loading…
x
Reference in New Issue
Block a user