Skip to content

Commit

Permalink
Re-initialize the DemoApp player on BLWE
Browse files Browse the repository at this point in the history
This CL shows a de facto way to solve BLWEs until an in-player
solution is implemented.

Issue:#1782

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=145265895
  • Loading branch information
AquilesCanta authored and ojw28 committed Jan 24, 2017
1 parent 55ca323 commit d303db9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,12 @@ public void onPlayerError(ExoPlaybackException e) {
playerNeedsSource = true;
if (isBehindLiveWindow(e)) {
clearResumePosition();
initializePlayer();
} else {
updateResumePosition();
updateButtonVisibilities();
showControls();
}
updateButtonVisibilities();
showControls();
}

@Override
Expand Down

0 comments on commit d303db9

Please sign in to comment.