Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(music): 优化音乐播放逻辑和数据处理 #301

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

serious-snow
Copy link

@serious-snow serious-snow commented Nov 29, 2024

  • 改进 setNextPlaySong 方法,处理空播放列表的情况
  • 优化重复歌曲移除逻辑,确保插入位置正确
  • 调整音乐数据重置方式,使用对象展开运算符
  • 增加播放器加载状态检查,避免未准备好时操作
  • 改进歌曲播放逻辑,处理添加到播放列表后立即播放的情况
  • 优化播放索引切换,考虑当前播放状态
  • 调整播放列表移除歌曲逻辑,优化用户体验
  • 将初始 playIndex 设置为 -1,表示未播放状态

-改进 setNextPlaySong 方法,处理空播放列表的情况
-优化重复歌曲移除逻辑,确保插入位置正确
- 调整音乐数据重置方式,使用对象展开运算符
-增加播放器加载状态检查,避免未准备好时操作
-改进歌曲播放逻辑,处理添加到播放列表后立即播放的情况- 优化播放索引切换,考虑当前播放状态
-调整播放列表移除歌曲逻辑,优化用户体验
- 将初始 playIndex 设置为 -1,表示未播放状态
@imsyy imsyy merged commit b2dcec8 into imsyy:dev Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants