Pergunta

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!

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top