mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
update stateMix
This commit is contained in:
1 parent
6743144f44
commit
609ccb4c46
11 files changed
+71
-70
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user