1
0
mirror of https://github.com/videojs/video.js.git synced 2024-11-24 08:42:25 +02:00

chore: update pip enter event with window metadata (#8591)

This commit is contained in:
Walter Seymour 2024-02-20 11:11:00 -06:00 committed by GitHub
parent 395d608761
commit 4c1f63b711
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) => {