-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Infinite pending request (Chrome) #455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I too seem to be having this issue, the result for me being a hung Tab that I have to manually close. My stackoverflow comment below: "When I use the direct video URL, not running through an HTML page with a video tag etc, my Chrome network tab tells me the request is made thrice with the following Statuses: "(canceled)", "(pending)", "200 OK", in that order. The mp4 loads however. In my video.js context in an HTML page, the request also happens thrice, but intermittently fails - resulting in a hung tab which I must close manually." |
I can see this here too, only happens under Chrome |
Thanks for pointing out the Chrome bug. Depending on the use case it seems like using preload="none" could help. We also added some additional cleanup for video elements when they're disposed of, where |
Just had a similar bug happen and found several Chrome issues referencing this bug or something similar. In my case, the first of my For whatever reason, Chrome would choke on the mp4 file. It was encoded with x.264:
The weirdest thing is a different video, encoded the same way/matching the above output, works just fine. We fixed (hacked) around this bug by doing the following:
Chrome now loads the webm video first and does not choke on the mp4. |
@timelf123 that's odd behavior. There's some MP4 related issues with Chrome for linux, but this sounds file specific. You might try re-encoding the first file, or running it through Zencoder which can fix a number of oddities. |
It looks like the issue is still pending in Chrome. I'm going to close this since I don't' think there's anything we can do in video.js to prevent this, but if there's any new information please post it here. |
Any news on this issue? |
Still not solved.. kick. |
I've been following the Chrome issue for... a while now: https://code.google.com/p/chromium/issues/detail?id=234779 Follow the threads and you might find a temporary solution, but it looks like Chrome is dragging its heels on this one. |
Believe it or not, this works for me. I just have to execute this before any new video is added. NOTHING ELSE worked for me. // this hack clears up any pending socket issues. damn it chrome.
if(window.stop !== undefined) {
window.stop();
} else if(document.execCommand !== undefined) {
document.execCommand("Stop", false);
} |
@booherbg This worked for me too! Thanks for sharing! |
@booherbg Thank you! It works! |
This didn't work for me unfortunately. (I'm using just the video tag and replacing the src dynamically) |
Bumped on this today. Common Chrome, employer blames this shit on me! It's bloody 2019. Setting |
@jayarjo have you found a workaround for this? I'm facing the same issue in 2021. |
Hi, I found an issue with some infinite pending request on Chrome. This seems related to the HTML5 video elements has it happens on Video-js, but also any other HTML5 video player I can found out there (media-element, etc)
I explained the bug more clearly over StackOverflow: http://stackoverflow.com/questions/16137381/html5-video-element-request-stay-pending-forever-on-chrome
The text was updated successfully, but these errors were encountered: