feat(plugin): 扩展 API Level 4,支持高级歌词与歌曲封面读取#87
Open
laoshuikaixue wants to merge 2 commits into
Open
Conversation
laoshuikaixue
commented
Jul 15, 2026
Contributor
- 新增结构化歌词事件,传递逐字时间、翻译、音译、TTML 伴唱及对唱信息
- 增加歌词状态和修订号,支持播放过程中歌词重新匹配、更新与格式升级
- 增加曲目元数据修订及 trackUpdate 事件,支持延迟更新歌曲信息
- 新增 positionSync 事件,提供播放位置、状态、倍速、歌词偏移和时间锚点
- 新增 media.getCover API,向插件提供压缩后的当前歌曲封面及内容哈希
- 完善插件 Worker 与网络请求的二进制数据传输,兼容跨 VM Realm 的 ArrayBuffer 视图
- 优化高频播放状态广播与隐藏窗口处理,降低无效 IPC 和渲染开销
- 更新插件类型定义、默认 API 等级、开发文档及示例
- 新增结构化歌词事件,传递逐字时间、翻译、音译、TTML 伴唱及对唱信息 - 增加歌词状态和修订号,支持播放过程中歌词重新匹配、更新与格式升级 - 增加曲目元数据修订及 trackUpdate 事件,支持延迟更新歌曲信息 - 新增 positionSync 事件,提供播放位置、状态、倍速、歌词偏移和时间锚点 - 新增 media.getCover API,向插件提供压缩后的当前歌曲封面及内容哈希 - 完善插件 Worker 与网络请求的二进制数据传输,兼容跨 VM Realm 的 ArrayBuffer 视图 - 优化高频播放状态广播与隐藏窗口处理,降低无效 IPC 和渲染开销 - 更新插件类型定义、默认 API 等级、开发文档及示例
|
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。Hello! The owner is now AFK![img]https://www.ipip5.com/myip[/img]
|
- 添加了 BASE64 长度限制常量以控制封面大小 - 改进了 data URL 解析的安全性检查 - 优化了远程封面下载的流式处理 - 修复了播放进度同步中的速度计算错误 - 实现了更精确的播放位置锚定机制 - 添加了对封面下载超时的正确处理
Contributor
Author
|
使用拓展后的API制作的插件示例:https://github.com/laoshuikaixue/ClassLink-SPlayer-Connector Desktop.2026.07.15.-.22.14.04.01.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.