Question

I wants browser to download a video as file as soon as when server is ready.

I have seen Download File Using Javascript/jQuery , however,It is not possible to change MIME on my server.

But some browser will regard video as a streaming media and display it at hidden iframe,instead of download it.

How can I fix this,make browser ignore MIME and download it?

Thanks for help!

Was it helpful?

Solution

Maybe, HTML5 download attribute is what you need? Give client a link to the video and add the attribute to it. Not every browser supports it, though.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top