Skip to content

Commit

Permalink
chore: update pip enter event with window metadata (#8591)
Browse files Browse the repository at this point in the history
  • Loading branch information
wseymour15 authored Feb 20, 2024
1 parent 395d608 commit 4c1f63b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -3212,7 +3212,7 @@ class Player extends Component {
pipWindow.document.body.classList.add('vjs-pip-window');

this.player_.isInPictureInPicture(true);
this.player_.trigger('enterpictureinpicture');
this.player_.trigger({type: 'enterpictureinpicture', pipWindow});

// Listen for the PiP closing event to move the video back.
pipWindow.addEventListener('pagehide', (event) => {
Expand Down

0 comments on commit 4c1f63b

Please sign in to comment.