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

播放进度问题 #652

Open
WXRIW opened this issue May 6, 2021 · 2 comments
Open

播放进度问题 #652

WXRIW opened this issue May 6, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@WXRIW
Copy link

WXRIW commented May 6, 2021

YesPlayMusic的歌词比歌曲慢大约300ms,之前看到说是歌词慢了,但我又检查了很多次,原因应该是出在播放器。
Hint:播放页的歌曲总时长比实际歌曲长度少300s

@qier222
Copy link
Owner

qier222 commented May 17, 2021

没有感受出来慢了300ms,获取歌曲正在播放进度是每秒去howler获取一次的,设置成每秒一次是为了节省性能,歌词会每50ms就检查一次是否换行。

参考src/utils/Player.js_setIntervals()
src/views/lyrics.vuesetLyricsInterval()

@WXRIW
Copy link
Author

WXRIW commented May 17, 2021

播放页的歌曲总长是通过播放模块获取的吗?
image
image
我怀疑可能是这个原因

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