HTML 5 video will not play in IE10 - "Invalid Source"

I have this code:

<video width="365" height="250" controls> <source src="../videos/MiSIPP_Overview.mp4" type="video/mp4" /> <source src="../videos/MiSIPP_Overview_OGV.ogv" type="video/ogg" /> (HTML 5 video player has failed) </video> 

It works correctly in Chrome as well as in Firefox (using OGG fall-back), but it definitely does not work in IE10 or emulates IE9. I get an "Invalid source".

I tried changing the src tag to point to the hosted file via http ... but this does not work either.

I also tried using Freemake Video Converter to create a .webm file and pointed to it instead. Still no dice.

Is there anything else I can try?

+6
source share
3 answers

I had this problem and it turned out that the video codec is not supported. Get the software for the video converter (for example, Oxelon - it's free) and select the output, which will be .mp4 (even the source is .mp4). And select the video codec (H264) and the audio codec will be (AAC). This will solve your problem.

Lobster

+1
source

Not sure how you use IE9 emulation, but try this in the section of the chapter if you haven't already.

 <meta http-equiv="X-UA-Compatible" content="IE=9"/> 
0
source

Add

 <source src="../videos/MiSIPP_Overview_OGV.webm" type="video/webm" /> 

source type in code. its support in IE browser.

0
source

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


All Articles