update stateMix

This commit is contained in:
Harvey Zack committed 2023-04-20 11:49:43 +08:00
1 parent 6743144f44
commit 609ccb4c46
11 files changed
+71 -70

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@ function nativePip(art) {
},
set(value) {
if (value) {
art.normalSize = 'pip';
art.state = 'pip';
$video.requestPictureInPicture().catch((err) => {
notice.show = err;
throw err;
@@ -49,7 +49,7 @@ function webkitPip(art) {
},
set(value) {
if (value) {
art.normalSize = 'pip';
art.state = 'pip';
$video.webkitSetPresentationMode('picture-in-picture');
art.emit('pip', true);
} else {