Domanda

This plugin works great and I am so glad I found it. I'm working on this page: http://www.kwbg.com/audio/coaches-corner/. I would like for customers to be able to not only click and play the file, but also download it. I would usually just upload the media like normal and link a word or image for people to download. When I try to do this, however, it automatically plays the file using MediaElement.js, rather than downloading it. Any advice? I saw a couple of other questions like this from several years ago, but none of them seemed to have any true answers.

Thanks!

Nessuna soluzione corretta

Altri suggerimenti

This isn't really a mediaelement.js problem, you need to send headers to the browser that tell it to download, not view, the media file. If you're using PHP, some of the comments on this page may be useful: http://php.net/manual/en/function.header.php#100282

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top