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

无缝播放 #317

Open
10knamesmore opened this issue Nov 27, 2024 · 3 comments
Open

无缝播放 #317

10knamesmore opened this issue Nov 27, 2024 · 3 comments

Comments

@10knamesmore
Copy link

不知能否添加无缝播放特性,即在一首歌播放结束再切换到下一首歌前没有等待加载的空白时间,

@gmg137
Copy link
Owner

gmg137 commented Dec 2, 2024

理论上播放是没有间隔时间的,等待加载时间取决于你的网速。

@10knamesmore
Copy link
Author

那能通过歌曲结束前一段时间提前加载播放列表中的下一首,等播放完成自动连播的操作实现吗

@gmg137
Copy link
Owner

gmg137 commented Dec 2, 2024

那能通过歌曲结束前一段时间提前加载播放列表中的下一首,等播放完成自动连播的操作实现吗

可以实现,不过现在采用的是流播放,并不会一下缓存整首歌,而是在歌曲缓存全部完成后再保存到本地,这样的好处是播放大歌曲时几乎不会有卡顿。如果采用提前缓存,一旦遇到如播客那样的几十甚至小时计的音频时,会造成未缓存完便开始播放。

想优化速度的话也许可以通过提前获取播放链接来解决,我先测试下看看效果。

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

No branches or pull requests

2 participants