简化工具函数

This commit is contained in:
zhw2590582 committed 2019-11-22 20:50:14 +08:00
1 parent be4d1d0437
commit 1270167a3e
26 files changed
+182 -152

No files matched your search

+3 -1
View File
@@ -1,6 +1,8 @@
import { def } from '../utils';
export default function playingMix(art, player) {
const { $video } = art.template;
Object.defineProperty(player, 'playing', {
def(player, 'playing', {
get: () => !!($video.currentTime > 0 && !$video.paused && !$video.ended && $video.readyState > 2),
});
}