fix(android): ensure pause is well tken in account after onEnd (#4147)
Issue linked to: https://github.com/TheWidlarzGroup/react-native-video/issues/2690 This original issue is not reproduced
This commit is contained in:
parent
809a730198
commit
b2fd8d62a1
@ -1261,12 +1261,9 @@ public class ReactExoplayerView extends FrameLayout implements
|
||||
player.setPlayWhenReady(true);
|
||||
}
|
||||
} else {
|
||||
// ensure playback is not ENDED, else it will trigger another ended event
|
||||
if (player.getPlaybackState() != Player.STATE_ENDED) {
|
||||
player.setPlayWhenReady(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void resumePlayback() {
|
||||
if (player != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user