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,10 +1261,7 @@ public class ReactExoplayerView extends FrameLayout implements
|
|||||||
player.setPlayWhenReady(true);
|
player.setPlayWhenReady(true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// ensure playback is not ENDED, else it will trigger another ended event
|
player.setPlayWhenReady(false);
|
||||||
if (player.getPlaybackState() != Player.STATE_ENDED) {
|
|
||||||
player.setPlayWhenReady(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user