This commit is contained in:
Harvey committed 2019-09-03 17:29:12 +08:00
1 parent 6b716c622c
commit cdbf4b3816
2 files changed
+2 -2

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
export default function pauseMin(art, player) {
const {
template: { $video },
i18n,
notice,
} = art;
Object.defineProperty(player, 'pause', {
get() {
return $video.paused;
},
set(value) {
if (value) {
$video.pause();
notice.show(i18n.get('Pause'));
art.emit('pause');
} else {
player.play = true;
}
},
});
}