Merge pull request #82 from algerkong/feat/next-play

 feat: 增加音频服务的上一曲和下一曲功能
This commit is contained in:
Alger
2025-03-22 10:40:19 +08:00
committed by GitHub
+8
View File
@@ -433,6 +433,14 @@ const setupAudioListeners = () => {
}
});
audioService.on('previoustrack', () => {
playerStore.prevPlay();
});
audioService.on('nexttrack', () => {
playerStore.nextPlay();
});
return clearInterval;
};