Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多设备播放延迟和网页控制异常 #120

Closed
jibwf opened this issue Jul 14, 2024 · 17 comments
Closed

多设备播放延迟和网页控制异常 #120

jibwf opened this issue Jul 14, 2024 · 17 comments
Labels
bug Something isn't working

Comments

@jibwf
Copy link
Contributor

jibwf commented Jul 14, 2024

版本0.3.0,基本可以使用了,感谢HanXi.

遇到2个BUG:

  1. 从小爱接收到指令到真正播放大概有10秒所有的延迟

[07:33:59] [0.3.0] [INFO] xiaomusic.py:487: 收到消息:播放本地歌曲760 控制面板:False did:700881969
[07:33:59] [0.3.0] [INFO] xiaomusic.py:1075: group_player_play http://192.168.1.2:8090/music/%E8%8B%B1%E8%AF%AD%E6%92%AD%E5%AE%A2/760.mp3 ['669e4c65-c58b-49f4-95bf-7107fbec2a18'] [{'code': 0, 'message': "Msg has been successfully proxy to the device, this service is a simple proxy, if you encounter any problems pls contact ROM's developers directly!!!", 'data': {'code': 0}}]
[07:33:59] [0.3.0] [INFO] xiaomusic.py:898: 已经开始播放了 >>>>>>此时并未播放

2.多个设备分组后,语音控制没问题,网页控制选择的设备无效,无论选择哪个设备,都只能将指令传给第一个设备。

xiaomusic (7).txt

@hanxi hanxi added the bug Something isn't working label Jul 15, 2024
@hanxi
Copy link
Owner

hanxi commented Jul 15, 2024

感谢反馈

@hanxi
Copy link
Owner

hanxi commented Jul 15, 2024

第2个问题0.3.1版本修复,第1个问题还要排查一下。

@hanxi
Copy link
Owner

hanxi commented Jul 15, 2024

英语播客/760.mp3 这个文件大小是多少呢?会不会是因为文件太大?

@jibwf
Copy link
Contributor Author

jibwf commented Jul 15, 2024

@hanxi
我也发现只有博客里的文件延迟最大。应该不是完全和大小有关系。 08 提升亲密关系的文件比760.mp3大,但是延迟小的多
760.mp3.zip
08 提升亲密关系、社会关系是不断自我揭示和恳请反馈,扩大公开象限缩小盲点象限.mp3.zip

@hanxi
Copy link
Owner

hanxi commented Jul 15, 2024

更新后延迟有缓解没?

@jibwf
Copy link
Contributor Author

jibwf commented Jul 15, 2024

研究了下两个MP3文件,发现是因为MP3文件的ID3标签问题. 去掉标签后延迟从10秒左右缩短到3秒左右. 3秒感知还是比较明显的.

@jibwf
Copy link
Contributor Author

jibwf commented Jul 15, 2024

@hanxi 更新到最新版的测试结果

@hanxi
Copy link
Owner

hanxi commented Jul 15, 2024

研究了下两个MP3文件,发现是因为MP3文件的ID3标签问题. 去掉标签后延迟从10秒左右缩短到3秒左右. 3秒感知还是比较明显的.

那估计是小爱解析文件需要时间。

@jibwf
Copy link
Contributor Author

jibwf commented Jul 16, 2024

我看项目里使用了mutagen,是不是可以在文件播放前对id3 v2标签做一下处理. 移除v2标签或者用v2.4 append格式把标签放到文件最后.

@hanxi
Copy link
Owner

hanxi commented Jul 16, 2024

我看项目里使用了mutagen,是不是可以在文件播放前对id3 v2标签做一下处理. 移除v2标签或者用v2.4 append格式把标签放到文件最后.

我不熟,帮忙提个pr?

@jibwf
Copy link
Contributor Author

jibwf commented Jul 16, 2024

我看项目里使用了mutagen,是不是可以在文件播放前对id3 v2标签做一下处理. 移除v2标签或者用v2.4 append格式把标签放到文件最后.

我不熟,帮忙提个pr?

会一点python但是没github上提过,我研究下.

@hanxi
Copy link
Owner

hanxi commented Jul 16, 2024

@jibwf 看看能不能做成一个可选配置,毕竟会修改到用户的文件。可以在刷新列表后,对所有文件做一遍检查和修改。

@jibwf
Copy link
Contributor Author

jibwf commented Jul 19, 2024

@hanxi 之前没看清楚这句就开工了 “可以在刷新列表后,对所有文件做一遍检查和修改". 现在提交的代码是播放时候,如果是MP3文件,就去检查tag, 然后备份一份文件,移除tag,保存.

@jibwf
Copy link
Contributor Author

jibwf commented Jul 19, 2024

怎么能做到备份一份,还不影响播放列表呢

@hanxi
Copy link
Owner

hanxi commented Jul 19, 2024

怎么能做到备份一份,还不影响播放列表呢

把后缀名改了应该就可以,比如后缀改成 .mp3.bak

@hanxi
Copy link
Owner

hanxi commented Jul 23, 2024

v0.3.11已经发布,这个问题应该有所改善。

@hanxi
Copy link
Owner

hanxi commented Aug 1, 2024

v0.3.22版本应该已经修复。

@hanxi hanxi closed this as completed Aug 1, 2024
@hanxi hanxi mentioned this issue Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants