mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-03 14:20:50 +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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user