Commit Graph

10 Commits

Author SHA1 Message Date
ae2d8875ad
fix: 修复随机播放模式下预加载顺序错误的问题
- 修正 getNextIndex 在随机播放模式下返回正确的原始列表索引
- 简化预加载逻辑,因为 nextIndex 已经是正确的列表索引
- 保持 Player.vue 中更新歌曲信息时的索引计算逻辑

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-04 22:14:44 +10:00
dcf13b2f07
refactor: move resource URL refresh from favorites loading to playback/preload
Replace passive resource checking on playlist item mount with active checking
during playback and preload operations. This improves performance by reducing
unnecessary network requests and ensures resources are validated only when needed.

Changes:
- Create songResourceChecker utility for centralized resource validation
- Remove resource checking from PlayListItem component
- Add resource validation in Player component before playback
- Add resource validation in usePlayQueueStore before preload
- Maintain data consistency between play queue and favorites

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-04 21:22:39 +10:00
c6868ed2a2
feat: add vue-toast-notification for user feedback and implement queue management in TrackItem component 2025-05-27 17:03:55 +10:00
7a0c638d2c
feat(Player): implement audio preloading functionality with state management 2025-05-27 13:44:04 +10:00
d99ae28f8c
feat(播放器): 添加随机播放功能
实现播放队列的随机播放模式,包括:
1. 在 store 中添加 shuffleList 和 playMode 状态
2. 修改播放器组件以支持随机播放时的歌曲切换
3. 更新播放界面以显示随机播放队列
4. 添加随机播放按钮交互逻辑

当开启随机播放时,会生成随机播放列表并保持当前播放歌曲不变,关闭时可恢复原播放顺序。
2025-05-26 13:20:08 +10:00
73aaef1662
feat(音频可视化): 添加音频可视化功能并优化播放队列显示
引入音频可视化器模块,用于实时显示音频频谱。在播放队列中添加可视化效果,并优化播放队列的UI显示。同时,更新播放队列的标题为“播放队列”以提升用户体验。
2025-05-25 20:22:05 +10:00
de71db1992
feat(播放器): 添加播放进度同步功能
在播放器组件中添加了对播放进度的监听和同步功能,确保进度条与播放时间保持一致。同时,在播放队列存储中添加了`updatedCurrentTime`字段,用于更新播放时间。这些改动提升了用户体验,使播放进度控制更加直观和准确。
2025-05-25 10:38:13 +10:00
c24d51ea9e
feat(播放器): 新增播放室页面并集成GSAP动画库
新增播放室页面,支持歌曲播放进度条拖拽功能。在播放队列存储中添加当前播放时间和总时长状态。更新播放器组件以支持跳转到播放室页面,并集成GSAP动画库用于实现进度条拖拽效果。
2025-05-25 10:28:16 +10:00
956fef1d8a
feat(Player): 添加缓冲状态指示器
在播放器中添加了缓冲状态指示器,当音频缓冲时显示动画,提升用户体验
2025-05-25 00:10:23 +10:00
94a153ae11
feat(播放队列): 添加播放队列功能并集成 Pinia 状态管理
新增播放队列功能,使用 Pini a进行状态管理。包括创建播放队列存储、在专辑详情页添加播放功能、以及在播放组件中监听播放状态的变化。同时,更新了依赖以支持 Pinia 的集成。
2025-05-24 16:33:50 +10:00