分离播放器功能

This commit is contained in:
Harvey Zack committed 2018-11-05 14:11:25 +08:00
1 parent 3919ee2f3d
commit 617fd9681e
24 files changed
+671 -505

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
export default function toggleMix(art, player) {
Object.defineProperty(player, 'toggle', {
value: () => {
if (art.isPlaying) {
player.pause();
} else {
player.play();
}
}
});
}