mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
typofix
This commit is contained in:
1 parent
6b716c622c
commit
cdbf4b3816
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user