Skip to content

Commit

Permalink
Remove the superfluous exitPictureInPicture call.
Browse files Browse the repository at this point in the history
  • Loading branch information
dero committed Jan 31, 2022
1 parent f451221 commit 599d9ab
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/js/web-components/video-player/VideoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,6 @@ export default class VideoPlayer extends HTMLElement {
// If another video is already in PiP, pause it and exit PiP mode.
if (document.pictureInPictureElement instanceof VideoPlayer) {
document.pictureInPictureElement.videoElement.pause();
await document.exitPictureInPicture();
}
await this.videoElement.requestPictureInPicture();
} else {
Expand Down

0 comments on commit 599d9ab

Please # to comment.