Commit 5a43f622 authored by Hampton Maxwell's avatar Hampton Maxwell
Browse files

Generate an onEnd event when the end of the video is reached while repeat is on

parent db0a17f4
Loading
Loading
Loading
Loading
+4 −0
Changes for android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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