Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does IE11 open MP4 files in Windows Media Player instead of rendering within the browser?

I'm opening a direct link to an MP4 file that within Firefox and Chrome both render inside the browser's native player. When I load it in IE11, it forces the video top open within Windows Media Player. The problem is when loading it as part of the page's background, both Chrome and FireFox correctly render it within the page (using a jQuery plugin), but in IE11 it again opens up a Windows Media Player window.

like image 225
Whookie Avatar asked Sep 02 '14 03:09

Whookie


People also ask

Why are all of my files opening in Windows Media Player?

Right-click one of the files, point to "Open With" in the right-click menu and select "Choose Default Program." You can make another program, instead of Windows Media Player, the default here. You'll have to repeat this for each file extension you want to change back.

Does Windows 11 play MP4 files?

Yes, you can play MP4 files in Windows Media Player on Windows 11. However, you have to change the settings from default 'Media Player' to Windows Media Player on Windows 11. On Windows 11 PC, go to Settings >Apps > Default apps > Windows Media Player.

Does Internet Explorer support MP4?

Microsoft (Internet Explorer) and Apple (Safari) were early supporters of the MP4 format, but Mozilla (Firefox) and Opera were uncomfortable with certain licensing restrictions of MP4 and instead decided to support other formats such as OGG and WebM. Google (Chrome) has been an early supporter of all of these formats.


1 Answers

Sounds like you are opening the video file directly rather than embedding it on your site.

As per Degru's answer on This Reddit, you probably need to use the HTML5 <video>...</video> tag like so:

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  Your browser does not support the video tag.
</video>

Here is the W3Schools documentation

Here is a working example

like image 61
Danny Mahoney Avatar answered Oct 14 '22 08:10

Danny Mahoney