diff --git a/fixtures/xgplayer/index.js b/fixtures/xgplayer/index.js index 7508b0d2..1c87e7d4 100644 --- a/fixtures/xgplayer/index.js +++ b/fixtures/xgplayer/index.js @@ -293,9 +293,7 @@ function init(index = 0, config = {}) { } }, url: "./heatmap.mp4", - DynamicBg: { - disable: false - }, + pip: true, loop: false, autoplay: false, autoplayMuted: true, diff --git a/packages/xgplayer/src/plugins/pip/index.js b/packages/xgplayer/src/plugins/pip/index.js index 9020c1c8..64eea664 100644 --- a/packages/xgplayer/src/plugins/pip/index.js +++ b/packages/xgplayer/src/plugins/pip/index.js @@ -295,7 +295,7 @@ class PIP extends IconPlugin { isPIPAvailable () { const video = this.player.media - const _isEnabled = Util.typeOf(document.pictureInPictureEnabled) === 'Boolean' ? document.pictureInPictureEnabled : true + const _isEnabled = Util.typeOf(document.pictureInPictureEnabled) === 'Boolean' ? document.pictureInPictureEnabled : false return _isEnabled && ((Util.typeOf(video.disablePictureInPicture) === 'Boolean' && !video.disablePictureInPicture) || (video.webkitSupportsPresentationMode && Util.typeOf(video.webkitSetPresentationMode) === 'Function')) ||