Merge pull request #1036 from react-native-community/feature/exoplayer-repeat

Support repeat on ExoPlayer
This commit is contained in:
Hampton Maxwell 2018-05-28 21:04:46 -07:00 committed by GitHub
commit 0f2753fe6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}