fix repeat

This commit is contained in:
Daniel Mariño 2019-07-08 12:47:05 +02:00
parent 40c7371b3e
commit cb3cff7772

View File

@ -393,6 +393,7 @@ class ReactExoplayerView extends FrameLayout implements
// Initializing the playerControlView // Initializing the playerControlView
initializePlayerControl(); initializePlayerControl();
setControls(controls); setControls(controls);
applyModifiers();
} }
}, 1); }, 1);
} }
@ -910,6 +911,10 @@ class ReactExoplayerView extends FrameLayout implements
exoPlayerView.setResizeMode(resizeMode); exoPlayerView.setResizeMode(resizeMode);
} }
private void applyModifiers() {
setRepeatModifier(repeat);
}
public void setRepeatModifier(boolean repeat) { public void setRepeatModifier(boolean repeat) {
if (player != null) { if (player != null) {
if (repeat) { if (repeat) {