mirror of
https://github.com/imsyy/SPlayer.git
synced 2026-04-24 22:45:53 +03:00
[PR #908] [MERGED] feat(EMI): 添加音量控制功能 (linux-only) #722
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/imsyy/SPlayer/pull/908
Author: @MoYingJi
Created: 2/20/2026
Status: ✅ Merged
Merged: 2/21/2026
Merged by: @apoint123
Base:
dev← Head:pr/m📝 Commits (1)
dc2962dfeat(EMI): 添加音量控制功能 (linux-only)📊 Changes
11 files changed (+98 additions, -1 deletions)
View changed files
📝
electron/main/ipc/ipc-media.ts(+10 -0)📝
native/external-media-integration/index.d.ts(+11 -0)📝
native/external-media-integration/src/lib.rs(+10 -0)📝
native/external-media-integration/src/model.rs(+13 -0)📝
native/external-media-integration/src/sys_media/linux.rs(+16 -0)📝
native/external-media-integration/src/sys_media/macos.rs(+4 -0)📝
native/external-media-integration/src/sys_media/mod.rs(+4 -0)📝
native/external-media-integration/src/sys_media/windows.rs(+4 -0)📝
src/core/player/MediaSessionManager.ts(+13 -1)📝
src/core/player/PlayerController.ts(+3 -0)📝
src/core/player/PlayerIpc.ts(+10 -0)📄 Description
实现了
volume的双向通道,在PlayerController中的setVolume中更新 EMI,监听 EMI 调用setVolumemacOS 没有实现,因为在 Apple Developer Documentation 中被标记为 Deprecated
在 Linux (mpris-ctl) 上测试通过
Windows 实现为 AI 生成,通过编译 (workflow)(Windows 没有)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.