Skip to content

Commit

Permalink
fix(FEC-8852): closing pip window on Mac with Safari the video dose n…
Browse files Browse the repository at this point in the history
…ot return to the player (#336)
  • Loading branch information
odedhutzler committed Jan 24, 2019
1 parent db8b5c0 commit 3574993
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/engine-connector/engine-connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ class EngineConnector extends BaseComponent {
this.eventManager.listen(this.player, this.player.Event.LEAVE_PICTURE_IN_PICTURE, () => {
this.props.updateIsInPictureInPicture(false);
});

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

/**
Expand Down

0 comments on commit 3574993

Please sign in to comment.