Reputation: 7061
Not sure if anyone can really help with this, but it is worth a shot.
We have a scenario where we want the browser to download the entire video before we play it. We have managed to achieve this in FF and Chrome but we are struggling to do so in IE9/10. Is there a way to force or make the browser download the entire file?
My (simplified) markup is as follows:
<video preload>
<source src="http://domain.com/filename.mp4" type='video/mp4' />
</video>
Things I have tried:
Accept-Ranges: none
I am running out of things to try, if anyone has any suggestions or answers they would be greatly appreciated.
Cheers
Upvotes: 0
Views: 2990
Reputation:
You might consider placing the video off-screen, then playing it and waiting for it to end. To make it play faster, you could kick up playbackRate
. Meanwhile, you can show some kind of placeholder in the place where the video is supposed to be, then once you've gotten the information that it's played through, reset the video and move it to that location. Instead of waiting for the video to end, you could also wait for the canplaythrough
event, which might arrive sooner.
Upvotes: 1
Reputation: 4511
You may try to use HTML5Preloader Seems like it should do the trick.
Alternativly, you may try to use preload
attribute as proposed here.
Upvotes: 0