简化player接口

This commit is contained in:
Harvey Zack committed 2019-06-06 10:37:57 +08:00
1 parent 1b69b28ba1
commit 52b6693da2
41 files changed
+624 -690

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ export default function seekMix(art, player) {
const { notice } = art;
Object.defineProperty(player, 'seek', {
value: time => {
set(time) {
player.currentTime = time;
notice.show(`${secondToTime(time)} / ${secondToTime(player.duration)}`);
art.emit('seek', time);