我转换后的 .ogv (html5) 视频是通过多个请求下载的,而不是单个请求,这是什么原因造成的?
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这只是 firefox 试图变得聪明。我不会担心这个。
通过阅读 https://developer.mozilla.org/en/Configuring_servers_for_Ogg_media 和 https://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