mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Merge pull request #1849 from colinkho:stuckwhenready
PiperOrigin-RevId: 701306291
This commit is contained in:
commit
e27238666a
1 changed files with 2 additions and 1 deletions
|
|
@ -1225,7 +1225,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
}
|
}
|
||||||
if (!playbackInfo.isLoading
|
if (!playbackInfo.isLoading
|
||||||
&& playbackInfo.totalBufferedDurationUs < PLAYBACK_BUFFER_EMPTY_THRESHOLD_US
|
&& 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
|
// 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
|
// 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
|
// renderers are still transitioning to their ready states, but it could also indicate a
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue