We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 504ef9e commit 74b0ad4Copy full SHA for 74b0ad4
ui/controls.js
@@ -652,7 +652,8 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
652
isPiPAllowed() {
653
if ('documentPictureInPicture' in window &&
654
this.config_.preferDocumentPictureInPicture) {
655
- return true;
+ const video = /** @type {HTMLVideoElement} */(this.localVideo_);
656
+ return !video.disablePictureInPicture;
657
}
658
if (document.pictureInPictureEnabled) {
659
const video = /** @type {HTMLVideoElement} */(this.localVideo_);
0 commit comments