go-musicfox / go-musicfox

go-musicfox是用Go写的又一款网易云音乐命令行客户端,支持UnblockNeteaseMusic、各种音质级别、lastfm、MPRIS、MacOS交互响应(睡眠暂停、蓝牙耳机连接断开响应、菜单栏控制等)...
MIT License
1.63k stars 105 forks source link

SMTC 未设置 max_seek_time 和 start_time #259

Closed mokurin000 closed 6 months ago

mokurin000 commented 6 months ago

Check for existing issues

检查是否已存在相同issue

Describe the bug and provide steps to reproduce it

描述遇到的bug并提供相应的复现方法

使用 test-gsmtc 检查 musixfox 的 SMTC 字段

得到输出:

    timeline_properties:
        start_time: 0
        end_time: 0
        max_seek_time: 0
        min_seek_time: 0
        position: 21693000000
        last_updated_time: 133599952758105450

其中 end_time 是 The end timestamp of the current media item. min_seek_time 是 The earliest timestamp at which the current media item can currently seek to. end_time 应该设为歌曲长度 min_seek_time 为当前歌曲已经可以播放的长度(流获取/解码)

Environment / 运行环境

Windows 11 版本 10.0.22631 版本 22631 x86_64 i7-12700H

If applicable, list the error messages you see

如果有错误输出请一并填入

No response

If applicable, attach your ${MUSICFOX_ROOT}/musicfox.log file to this issue.

如果${MUSICFOX_ROOT}/musicfox.log里有错误日志,请一并上传

No response

anhoder commented 6 months ago

实际上我只在开始播放时设置了start_time和end_time,目前看起来是不支持增量更新,被后续的更新覆盖了

min_seek_time, max_seek_time 并不好计算,我可能会固定设置为5s或者10s

anhoder commented 6 months ago

v4.4.1已修复