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