HTML5 视频元素请求永远挂起(在 chrome 上) [英] HTML5 video element request stay pending forever (on chrome)

查看:27
本文介绍了HTML5 视频元素请求永远挂起(在 chrome 上)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Chrome 中有一个奇怪的问题.

I have a weird issue in Chrome.

每次加载 元素时,chrome 都会启动两个 HTTP 请求.

Each time I load a <video> element, chrome will start two HTTP request.

第一个将永远挂起(我猜这是元数据"、部分内容"请求.但关键是它保持挂起)

The first one will stay pending forever (I guess this is the "meta-data", "partial content" request. But the point is that it stay pending)

同一文件的第二个没问题,加载结束后继续关闭.

The second one to the same file is ok and goes on and close after the loading is over.

这里的问题是第一个请求一直待处理,直到我关闭浏览器页面.因此,在某些时候,如果我加载多个视频,Chrome 会中断并停止下载任何内容,因为每个可用请求都被这些待处理的请求占用.

The problem here is that the first request stay pending until I close the browser page. So at some point, if I load multiple video, Chrome will break and stop downloading anything because every available request is occupied by these pending requests.

我在这里创建了一个简化的测试用例:http://jsbin.com/ixifiq/3

I created a reduced test case here: http://jsbin.com/ixifiq/3

我已经检查以重现该问题,它同时发生在 Video.jsMediaElements.js 首页.加载页面时打开您的网络选项卡,您将看到第一个待处理的请求.然后按视频播放,您会看到第二个请求有效,但第一个请求将永远处于待处理状态.

I've check to reproduce the issue, and it is happening on both Video.js and MediaElements.js frontpages. Open your network tab when loading the page, you'll see the first pending request. Then press play on the video, and you'll see the second request working, but the first one will stay pending forever.

有没有人知道修复这个错误?

Does anyone knows a fix to this bug?

推荐答案

显然这是 Chrome 的一个错误.与 ATM 无关.

Apparently that's a bug from Chrome. And there's nothing to do about it ATM.

我不久前在 Chromium 项目上报告了这个问题,并且已经分配.所以希望它会在不久的将来得到修复.

I reported the issue a while ago on the Chromium project and it's been assigned. So hopefully it'll be fixed in near future.

错误报告:https://code.google.com/p/chromium/issues/detail?id=234779

这篇关于HTML5 视频元素请求永远挂起(在 chrome 上)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆