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:
parent
395d608761
commit
4c1f63b711
@ -3212,7 +3212,7 @@ class Player extends Component {
|
|||||||
pipWindow.document.body.classList.add('vjs-pip-window');
|
pipWindow.document.body.classList.add('vjs-pip-window');
|
||||||
|
|
||||||
this.player_.isInPictureInPicture(true);
|
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.
|
// Listen for the PiP closing event to move the video back.
|
||||||
pipWindow.addEventListener('pagehide', (event) => {
|
pipWindow.addEventListener('pagehide', (event) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user