Skip to content

feat: 添加 Windows 任务栏右键播放控制 - #303

Open
VincentZyu233 wants to merge 4 commits into
SPlayer-Dev:devfrom
VincentZyu233:feat/win-taskbar-jumplist
Open

VincentZyu233 wants to merge 4 commits into
SPlayer-Dev:devfrom
VincentZyu233:feat/win-taskbar-jumplist

Conversation

@VincentZyu233

@VincentZyu233 VincentZyu233 commented Sep 21, 2026 •

Copy link
Copy Markdown

简介

为 Windows 任务栏图标右键菜单(Jump List)添加播放控制,对齐 Linux 桌面(KDE)通过 MPRIS 提供的媒体控制。上游已有 hover 缩略图工具栏与 Linux MPRIS,但 Windows 右键菜单此前缺少播放控制。

win11 右键菜单效果

改动

  • 右键三项:上一首 / 播放·暂停(随状态切换)/ 下一首,顺序与 KDE 一致
  • 图标随系统深浅主题切换黑/白,与 hover 工具栏统一
  • 复用 player:event 通道,渲染层无需改动
  • 冷启动 / second-instance 均解析动作,订阅就绪前先暂存

要点

  • Jump List 用内层 process.execPath 拉起,便携版透传 --splayer-portable-dir 复用同一 userData 与单例锁,避免外层壳重解压卡顿
  • 图标用 32×32 BMP 帧 ICO,打包环境路径指向 app.asar.unpacked
  • 仅 Windows 生效,附命令行解析单元测试

@VincentZyu233
VincentZyu233 marked this pull request as ready for review September 21, 2026 07:17
@VincentZyu233

Copy link
Copy Markdown
Author

你好

@VincentZyu233

VincentZyu233 commented Sep 21, 2026 •

Copy link
Copy Markdown
Author

为 Windows 任务栏图标右键菜单(Jump List)添加播放控制

图片

这是我用来开发测试的 Windows环境捏。使用我的fork仓库构建的artifact进行的截图捏。

https://github.com/VincentZyu233/SPlayer-Next/actions/runs/35560284746

This branch has not been deployed

No deployments
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.

1 participant