mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-26 09:17:23 +08:00
✨ feat: 增加音频服务的上一曲和下一曲功能
This commit is contained in:
@@ -433,6 +433,14 @@ const setupAudioListeners = () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
audioService.on('previoustrack', () => {
|
||||||
|
playerStore.prevPlay();
|
||||||
|
});
|
||||||
|
|
||||||
|
audioService.on('nexttrack', () => {
|
||||||
|
playerStore.nextPlay();
|
||||||
|
});
|
||||||
|
|
||||||
return clearInterval;
|
return clearInterval;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user