Skip to content

Commit

Permalink
Fixed Issue #409 (loading not showing when seeking video)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwernick committed Mar 18, 2017
1 parent 99434b8 commit 5790144
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,7 @@ private void reportPlayerState() {
//Because the playWhenReady isn't a state in itself, rather a flag to a state we will ignore informing of
// see events when that is the only change. Additionally, on some devices we get states ordered as
// [seeking, ready, buffering, ready] while on others we get [seeking, buffering, ready]
boolean informSeekCompletion = stateStore.matchesHistory(new int[]{StateStore.STATE_SEEKING, ExoPlayer.STATE_READY}, true);
informSeekCompletion |= stateStore.matchesHistory(new int[]{StateStore.STATE_SEEKING, ExoPlayer.STATE_BUFFERING, ExoPlayer.STATE_READY}, true);
boolean informSeekCompletion = stateStore.matchesHistory(new int[]{StateStore.STATE_SEEKING, ExoPlayer.STATE_BUFFERING, ExoPlayer.STATE_READY}, true);
informSeekCompletion |= stateStore.matchesHistory(new int[]{StateStore.STATE_SEEKING, ExoPlayer.STATE_READY, ExoPlayer.STATE_BUFFERING, ExoPlayer.STATE_READY}, true);

for (ExoPlayerListener listener : listeners) {
Expand Down

0 comments on commit 5790144

Please sign in to comment.