添加迷你播放模式

This commit is contained in:
Harvey committed 2020-05-15 18:35:41 +08:00
1 parent ed80218e44
commit 05227caf18
13 files changed
+201 -36

No files matched your search

+8 -1
View File
@@ -59,7 +59,11 @@ function webkitPip(art, player) {
}
export default function pipMix(art, player) {
const { $video } = art.template;
const {
i18n,
notice,
template: { $video },
} = art;
if (document.pictureInPictureEnabled) {
nativePip(art, player);
} else if ($video.webkitSupportsPresentationMode) {
@@ -69,6 +73,9 @@ export default function pipMix(art, player) {
get() {
return false;
},
set() {
notice.show = i18n.get('PIP not supported');
},
});
}