[PR #903] [MERGED] 🐞fix(player/automix): 修复自动混音过渡时桌面歌词与 macOS 状态栏信息不更新的问题 #719

Closed
opened 2026-02-27 07:12:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imsyy/SPlayer/pull/903
Author: @Pissofdvpe
Created: 2/19/2026
Status: Merged
Merged: 2/20/2026
Merged by: @imsyy

Base: devHead: dev-fix


📝 Commits (2)

  • 7040a77 🐞fix(player/automix): 修复自动混音过渡时桌面歌词与 macOS 状态栏信息不更新的问题
  • 611f608 🐞fix(player/automix): 修复审查

📊 Changes

1 file changed (+16 additions, -1 deletions)

View changed files

📝 src/core/player/PlayerController.ts (+16 -1)

📄 Description

  • 在 setupSongUI 函数中增加显式的元数据通知逻辑,确保所有平台歌词组件信息同步:
    • 调用 playerIpc.sendSongChange 主动通知桌面歌词更新歌曲名称与艺术家。
    • 在 macOS 平台发送 mac-statusbar:update-progress 消息,初始化状态栏进度与显示。
  • 解决平滑过渡模式下的数据竞态:
    • 修复 AutoMix 模式下底层音频加载先于 UI 切换,导致 canplay 事件触发时 musicStore.playSong 尚未更新的问题。
    • 通过在 UI 实际切换点再次主动推送元数据,覆盖之前由于竞态发送的旧歌信息,确保歌词组件信息准确。

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imsyy/SPlayer/pull/903 **Author:** [@Pissofdvpe](https://github.com/Pissofdvpe) **Created:** 2/19/2026 **Status:** ✅ Merged **Merged:** 2/20/2026 **Merged by:** [@imsyy](https://github.com/imsyy) **Base:** `dev` ← **Head:** `dev-fix` --- ### 📝 Commits (2) - [`7040a77`](https://github.com/imsyy/SPlayer/commit/7040a7759d1a3fa2f3cbc2b89af50eb2d49c7fde) 🐞fix(player/automix): 修复自动混音过渡时桌面歌词与 macOS 状态栏信息不更新的问题 - [`611f608`](https://github.com/imsyy/SPlayer/commit/611f608924546ba94e226520489fa619c039f473) 🐞fix(player/automix): 修复审查 ### 📊 Changes **1 file changed** (+16 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/core/player/PlayerController.ts` (+16 -1) </details> ### 📄 Description - 在 setupSongUI 函数中增加显式的元数据通知逻辑,确保所有平台歌词组件信息同步: - 调用 playerIpc.sendSongChange 主动通知桌面歌词更新歌曲名称与艺术家。 - 在 macOS 平台发送 mac-statusbar:update-progress 消息,初始化状态栏进度与显示。 - 解决平滑过渡模式下的数据竞态: - 修复 AutoMix 模式下底层音频加载先于 UI 切换,导致 canplay 事件触发时 musicStore.playSong 尚未更新的问题。 - 通过在 UI 实际切换点再次主动推送元数据,覆盖之前由于竞态发送的旧歌信息,确保歌词组件信息准确。 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 07:12:51 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SPlayer#719
No description provided.