문제

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