feat: Correct isBehindLiveWindow Error Handling (#4143)

* feat: Correct isBehindLiveWindow Error Handling

---------

Co-authored-by: young <young@afreecatv.com>
This commit is contained in:
whdudtod1273 2024-09-04 16:54:08 +09:00 committed by GitHub
parent 9707081ab9
commit 22c21ad249
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1733,7 +1733,10 @@ public class ReactExoplayerView extends FrameLayout implements
playerNeedsSource = true; playerNeedsSource = true;
if (isBehindLiveWindow(e)) { if (isBehindLiveWindow(e)) {
clearResumePosition(); clearResumePosition();
initializePlayer(); if (player != null) {
player.seekToDefaultPosition();
player.prepare();
}
} else { } else {
updateResumePosition(); updateResumePosition();
} }