Merge pull request #1036 from react-native-community/feature/exoplayer-repeat
Support repeat on ExoPlayer
This commit is contained in:
commit
0f2753fe6e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user