[PR #930] feat(player): 添加杜比全景声支持、MPV服务优化及缓存MD5校验 #731

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

📋 Pull Request Information

Original PR: https://github.com/imsyy/SPlayer/pull/930
Author: @laoshuikaixue
Created: 2/23/2026
Status: 🔄 Open

Base: devHead: feature/dolby-atmos-support


📝 Commits (2)

  • 635f22f feat(player): 添加杜比音质支持并优化 MPV 服务管理
  • b29b100 feat(cache): 添加音乐缓存MD5校验功能

📊 Changes

9 files changed (+169 additions, -46 deletions)

View changed files

📝 electron/main/ipc/ipc-cache.ts (+11 -8)
📝 electron/main/ipc/ipc-window.ts (+16 -2)
📝 electron/main/services/MpvService.ts (+14 -3)
📝 electron/main/services/MusicCacheService.ts (+59 -21)
📝 native/external-media-integration/src/model.rs (+1 -0)
📝 src/api/song.ts (+14 -0)
📝 src/composables/useQualityControl.ts (+2 -2)
📝 src/core/player/SongManager.ts (+51 -9)
📝 src/utils/request.ts (+1 -1)

📄 Description

  • 添加杜比全景声音质支持,使用旧版接口并传入特殊参数
  • 实现杜比音质自动降级机制,当歌曲不支持时自动切换到最高可用音质
  • 添加 MPV 服务重启前的清理逻辑,确保进程正确停止避免资源占用
  • 优化 MPV 进程启动参数,增加音频通道自动检测和损坏数据容错处理
  • 添加 MPV 进程输出捕获用于调试,记录标准输出和错误输出
  • 修改 cookie 设置添加 os=pc 参数以支持杜比音质数据获取
  • 修复音质控制组件中当前音质显示的逻辑错误
  • 统一新旧接口数据结构处理,兼容数组和对象格式返回值

Closed #875


🔄 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/930 **Author:** [@laoshuikaixue](https://github.com/laoshuikaixue) **Created:** 2/23/2026 **Status:** 🔄 Open **Base:** `dev` ← **Head:** `feature/dolby-atmos-support` --- ### 📝 Commits (2) - [`635f22f`](https://github.com/imsyy/SPlayer/commit/635f22fc9632da136312d1aa573890ba78a9e200) feat(player): 添加杜比音质支持并优化 MPV 服务管理 - [`b29b100`](https://github.com/imsyy/SPlayer/commit/b29b10092353f1a355928bfe150a3cd9ab2b6c99) feat(cache): 添加音乐缓存MD5校验功能 ### 📊 Changes **9 files changed** (+169 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `electron/main/ipc/ipc-cache.ts` (+11 -8) 📝 `electron/main/ipc/ipc-window.ts` (+16 -2) 📝 `electron/main/services/MpvService.ts` (+14 -3) 📝 `electron/main/services/MusicCacheService.ts` (+59 -21) 📝 `native/external-media-integration/src/model.rs` (+1 -0) 📝 `src/api/song.ts` (+14 -0) 📝 `src/composables/useQualityControl.ts` (+2 -2) 📝 `src/core/player/SongManager.ts` (+51 -9) 📝 `src/utils/request.ts` (+1 -1) </details> ### 📄 Description - 添加杜比全景声音质支持,使用旧版接口并传入特殊参数 - 实现杜比音质自动降级机制,当歌曲不支持时自动切换到最高可用音质 - 添加 MPV 服务重启前的清理逻辑,确保进程正确停止避免资源占用 - 优化 MPV 进程启动参数,增加音频通道自动检测和损坏数据容错处理 - 添加 MPV 进程输出捕获用于调试,记录标准输出和错误输出 - 修改 cookie 设置添加 os=pc 参数以支持杜比音质数据获取 - 修复音质控制组件中当前音质显示的逻辑错误 - 统一新旧接口数据结构处理,兼容数组和对象格式返回值 Closed #875 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#731
No description provided.