Mediaelement.js show download link

I am currently working on an html5 video with MediaElement.js. It works fine in Chrome, but only shows a download link in Firefox.

here is the html:

<div id="wrap"> <video width="680" height="255" id="vid-holder"> <source src="media/JonesLangLaselle_1210_final.webm" type="video/webm"/> <source src="media/JonesLangLaselle_1210_final.mp4" type="video/mp4"/> <source src="media/JonesLangLaselle_1210_final.ogv" type="video/ogg"/> </video> </div> 

is there a problem with the original hierarchy?

+4
source share
1 answer

I have an answer, hope this helps.

just add the preload attribute to the video tag

added by:

 <video width="680" height="255" id="vid-holder" preload="none"> 
0
source

Source: https://habr.com/ru/post/1444247/


All Articles