Generate an onEnd event when the end of the video is reached while repeat is on
This commit is contained in:
parent
db0a17f4a9
commit
5a43f62253
@ -471,6 +471,10 @@ class ReactExoplayerView extends FrameLayout implements
|
||||
// which they seeked.
|
||||
updateResumePosition();
|
||||
}
|
||||
if (reason == ExoPlayer.DISCONTINUITY_REASON_PERIOD_TRANSITION
|
||||
&& player.getRepeatMode() == Player.REPEAT_MODE_ONE) {
|
||||
eventEmitter.end();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user