feat: Correct isBehindLiveWindow Error Handling (#4143)
* feat: Correct isBehindLiveWindow Error Handling --------- Co-authored-by: young <young@afreecatv.com>
This commit is contained in:
parent
9707081ab9
commit
22c21ad249
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user