Skip to content

Commit

Permalink
fix(FEC-10526): iPad iOS11 - wrong full screen button state when PiP …
Browse files Browse the repository at this point in the history
…active (#548)

Issue: iOS < 13 doesn't fire `EXIT_FULLSCREEN` when moving from native full screen (AV player) to PiP
Solution: Update the button state using `PRESENTATION_MODE_CHANGED` event

Solves FEC-10526
  • Loading branch information
yairans committed Oct 18, 2020
1 parent 8ab87ec commit 3bab3b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/engine-connector/engine-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ class EngineConnector extends Component {
});

eventManager.listen(player, player.Event.PRESENTATION_MODE_CHANGED, () => {
player.isInPictureInPicture() ? this.props.updateIsInPictureInPicture(true) : this.props.updateIsInPictureInPicture(false);
this.props.updateIsInPictureInPicture(player.isInPictureInPicture());
this.props.updateFullscreen(player.isFullscreen());
});

eventManager.listen(player, player.Event.ENTER_FULLSCREEN, () => {
Expand Down

0 comments on commit 3bab3b7

Please sign in to comment.