mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
Fix mobile subtitle
This commit is contained in:
1 parent
ce2184f016
commit
489b81bb43
9 files changed
+92
-51
No files matched your search
@@ -31,7 +31,7 @@ export default function fullscreenMix(art) {
|
||||
await screenfull.exit();
|
||||
removeClass($player, 'art-fullscreen');
|
||||
art.emit('resize');
|
||||
art.emit('fullscreen');
|
||||
art.emit('fullscreen', false);
|
||||
notice.show = '';
|
||||
}
|
||||
},
|
||||
@@ -51,7 +51,7 @@ export default function fullscreenMix(art) {
|
||||
notice.show = '';
|
||||
} else {
|
||||
$video.webkitExitFullscreen();
|
||||
art.emit('fullscreen');
|
||||
art.emit('fullscreen', false);
|
||||
notice.show = '';
|
||||
}
|
||||
},
|
||||
|
||||
@@ -24,7 +24,7 @@ export default function fullscreenWebMix(art) {
|
||||
art.aspectRatioReset = true;
|
||||
art.autoSize = art.option.autoSize;
|
||||
art.emit('resize');
|
||||
art.emit('fullscreenWeb');
|
||||
art.emit('fullscreenWeb', false);
|
||||
notice.show = '';
|
||||
}
|
||||
},
|
||||
|
||||
@@ -87,7 +87,7 @@ export default function miniMix(art) {
|
||||
art.playbackRate = false;
|
||||
art.autoSize = option.autoSize;
|
||||
art.notice.show = '';
|
||||
art.emit('mini');
|
||||
art.emit('mini', false);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
@@ -34,7 +34,7 @@ function nativePip(art) {
|
||||
});
|
||||
|
||||
proxy($video, 'leavepictureinpicture', () => {
|
||||
art.emit('pip');
|
||||
art.emit('pip', false);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ function webkitPip(art) {
|
||||
art.emit('pip', true);
|
||||
} else {
|
||||
$video.webkitSetPresentationMode('inline');
|
||||
art.emit('pip');
|
||||
art.emit('pip', false);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user