diff --git a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java index d368fdf8..bc2f70de 100644 --- a/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java +++ b/android-exoplayer/src/main/java/com/brentvatne/exoplayer/ReactExoplayerView.java @@ -610,6 +610,13 @@ class ReactExoplayerView extends FrameLayout implements } public void setRepeatModifier(boolean repeat) { + if (player != null) { + if (repeat) { + player.setRepeatMode(Player.REPEAT_MODE_ONE); + } else { + player.setRepeatMode(Player.REPEAT_MODE_OFF); + } + } this.repeat = repeat; }