HTML5 video element request stay pending forever (on chrome)
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
HTML Video's status becomes pending after some times
I suspect what's happening here is that the video elements you removed are still in memory and trying to download. The browser doesn't stop buffering or even playing a video once it's no longer attached to the DOM, because you might use attach it again later or use it for other things like canvas or Web Audio API. And Chrome can only download so many streams at once before it starts blocking new ones.
To really get rid of your old video elements, you need to set the src
to an empty string and then call .load()
. That will force the browser to stop buffering that element, and then you can truly be done with it.
Or, you can just re-use the same video element and set the new src
(or source
child elements) on it the next time through the loop. Just remember to call .load()
on the video element whenever you change the src
.
In theory, the browser could decide to stop buffering a video element that isn't playing and has no references to it in memory and just garbage collect it. But not having seen your code, I can't say if you've got any stray references around. And Chrome can be weird about this kind of thing sometimes.
Related Topics
Setting a Width and Height on an a Tag
Center HTML Input Text Field Placeholder
How to Center the Contents of an HTML Table
How to Justify a Horizontal List
How to Show Multiline Text in a Table Cell
Disable Form Autofill in Chrome Without Disabling Autocomplete
Why Do I Need a Doctype? (What Does It Do)
Can You Use CSS to Mirror/Flip Text
How to Scale a Stubborn Svg Embedded with the <Object> Tag
Disable Spell-Checking on HTML Textfields
Deploying Just HTML, CSS Webpage to Tomcat
How to Align Flexbox Columns Left and Right
Stop CSS Transition from Firing on Page Load
How to Embed Latex in a Webpage
Disable Double-Tap "Zoom" Option in Browser on Touch Devices
Css: How to Set Image Size Relative to Parent Height