htmlgoogle-chromehtml5-videomediaelement.jsvideo.js

HTML5 video element request stay pending forever (on chrome)


I have a weird issue in Chrome.

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.

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.

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


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?


Solution

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

    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.

    Bug report: https://code.google.com/p/chromium/issues/detail?id=234779