简化事件

This commit is contained in:
Harvey committed 2020-05-22 13:23:28 +08:00
1 parent 938b90f3a7
commit 4718cd186b
36 files changed
+223 -250

No files matched your search

+4 -4
View File
@@ -29,11 +29,11 @@ function nativePip(art, player) {
});
proxy($video, 'enterpictureinpicture', () => {
art.emit('pipChange', true);
art.emit('pip', true);
});
proxy($video, 'leavepictureinpicture', () => {
art.emit('pipChange', false);
art.emit('pip');
});
}
@@ -49,10 +49,10 @@ function webkitPip(art, player) {
set(value) {
if (value) {
$video.webkitSetPresentationMode('picture-in-picture');
art.emit('pipChange', true);
art.emit('pip', true);
} else {
$video.webkitSetPresentationMode('inline');
art.emit('pipChange', false);
art.emit('pip');
}
},
});