-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Video preloads on Internet Explorer even when preload="none" #3879
Comments
Video.js doesn't control these network requests - it's up to the browser to honour the preload attribute. Note that the preload values are defined in the spec as "hints" so IE isn't technically "wrong" if it decides to ignore it and do its own thing. I'm fairly sure IE does honour |
It sounds like this is a browser bug and not anything we can fix. Marking it as such and closing. If we get more info and it turns out it's something else, we can re-open to take another look at it. |
Hi gkatsev, It's definitely an issue with videojs. I've made a demo with nothing more than a static Compare that to a videojs demo, you'll see roughly half a meg of video being preloaded, with the exact same setup as above. Going deeper into the problem, here's the first demo again (which works correctly), but this time with the Last demo (I promise). Here's the same setup as above, with a static My conclusion is that the Thanks |
I mean, if IE requires the video to be static for We recently added a feature for "ingesting a player div" that could potentially be used as a workaround. Since we don't need to create a new video element, we stick with the one that is available. Basically, the embed code changes from just a video element to something like: <div data-vjs-player>
<video controls preload="none">
</div> |
@markmanx @gkatsev The "Ingesting player div" feature doesn't help, because For the "preload: none" case, does video-js have a feature to dynamically create |
Description
Video partially preloads on IE9 and greater, even when including the attribute preload="none" in the video tag. A test case can be found here. Check for video data packets being transferred when the window loads.
Steps to reproduce
Results
Expected
No video data transferred at all until the user interacts with the player. This is the case for Chrome (both desktop and Android), FF, Safari (desktop and iOS). It's just IE that seems to be affected (not sure about Edge).
Actual
Computer blew up, pieces of circuit board everywhere.
Not really. Just partial download of the video.
Error output
No errors in console.
Additional Information
Tested with Videojs 5.14.1
Browsers affected: IE9, 10, 11
Windows 7
No plugins
The text was updated successfully, but these errors were encountered: