在 Android 中管理视频流缓冲

发布于 2024-10-04 18:28:15 字数 126 浏览 0 评论 0原文

我在通过 HTTP 传输视频文件时遇到问题。使用VideoView。

我注意到回溯时缓冲区百分比会减少。我还注意到,如果正在重播,视频会再次开始下载。

是否可以为视频缓冲区提供某种缓存。以及如何做到这一点?

I have an issue with streaming video file via HTTP. VideoView is used.

And I have noticed that buffer percentage decrease when seeking back. Also I have noticed that video start downloading once again if it is replaying.

Is it possible to provide some kind of cache for video buffer. And how to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毁梦 2024-10-11 18:28:15

您可以将大文件下载/流式传输为小文件块。一一播放这些块文件。在这种情况下,您应该正确使用 MediaPlayer。 - 谢谢

You can download/stream large file into small chunk of files. Play these chunk files one by one. In this case you should make proper use of MediaPlayer. - thanks

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文