mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-15 09:06:16 -08:00
19 lines
368 B
JavaScript
19 lines
368 B
JavaScript
import { def } from '../utils';
|
|
|
|
export default function pauseMix(art) {
|
|
const {
|
|
template: { $video },
|
|
i18n,
|
|
notice,
|
|
} = art;
|
|
|
|
def(art, 'pause', {
|
|
value() {
|
|
const result = $video.pause();
|
|
notice.show = i18n.get('Pause');
|
|
art.emit('pause');
|
|
return result;
|
|
},
|
|
});
|
|
}
|