Skip to content

Commit

Permalink
feat: Correct isBehindLiveWindow Error Handling (#4143)
Browse files Browse the repository at this point in the history
* feat: Correct isBehindLiveWindow Error Handling

---------

Co-authored-by: young <young@afreecatv.com>
  • Loading branch information
whdudtod1273 and young authored Sep 4, 2024
1 parent 9707081 commit 22c21ad
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,10 @@ public void onPlayerError(@NonNull PlaybackException e) {
playerNeedsSource = true;
if (isBehindLiveWindow(e)) {
clearResumePosition();
initializePlayer();
if (player != null) {
player.seekToDefaultPosition();
player.prepare();
}
} else {
updateResumePosition();
}
Expand Down

0 comments on commit 22c21ad

Please sign in to comment.