سؤال

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!

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top