我转换后的 .ogv (html5) 视频是通过多个请求下载的,而不是单个请求,这是什么原因造成的?

发布于 2024-12-22 07:13:30 字数 117 浏览 2 评论 0原文

我在 firebug 中看到,我的 .ogv 视频(770KB)正在多个部分内容请求中下载,而如果我用从其他地方获得的另一个视频(1.7 MB)替换它,那么它总是在单个请求中下载。

可能是什么原因造成的?

I am seeing, in firebug, that my .ogv video(770KB) is being downloaded in several partial content requests while if I replace this with another video(1.7 MB) that I got from somewhere else then this is downloaded always in a single request.

What may be causing this ?

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

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

发布评论

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

评论(1

从来不烧饼 2024-12-29 07:13:30

我认为这只是 firefox 试图变得聪明。我不会担心这个。
通过阅读 https://developer.mozilla.org/en/Configuring_servers_for_Ogg_mediahttps://bugzilla.mozilla.org/show_bug.cgi?id=502894#c1 我认为firefox首先开始下载文件,然后如果它发现文件头不包含在电影的持续时间内,它会下载文件的最后部分,其中包含最后一帧的时间戳,之后它将继续下载文件开头处停止的位置。

我的猜测是另一个文件的持续时间以某种方式编码在标头中,或者,如果您从其他服务器热链接它,则其他服务器不支持 http-ranges

I think it's just firefox trying to be smart. I would not worry about it.
By reading https://developer.mozilla.org/en/Configuring_servers_for_Ogg_media and https://bugzilla.mozilla.org/show_bug.cgi?id=502894#c1 I think firefox first start downloading the file, then if it finds the file header doesn't contain the duration of the movie, it downloads the last part of the file, which contains the timestamp of the last frame, after that it will continue downloading where it stopped at the beginning of the file.

My guess is the other file has the duration coded in the header somehow, or, if you are hotlinking it from some other server, that the other server is not supporting http-ranges

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