How to Play MP4 Video on Firefox
Hacks,  Home

 How to Play MP4 Video on Firefox

In this blog, we will share how to play an MP4 video on Firefox.

When developing or improving a website, software developers encounter problems that appear to be a dead-end but, in reality, are easy to solve, like this topic.

Have you ever encountered problems with playing videos in MP4 format on Firefox? If yes, one of the possible solutions is to convert .mp4 to .webm format.

For example in my case, I have used this block of code to embed an mp4 video on my site, but it was not playing on Firefox:

<video autoplay="" muted="" loop="">
<source src="videopath/video.mp4" type="video/mp4">
</video> 

There are plenty of online tools to convert .mp4 to .webm like the Cloudconvert or Convertio or Zamzar.

Once you have converted your .mp4 video to .webm format, you need to amend the previous code by adding a line for the .webm, so the code should look like this:

<video autoplay="" muted="" loop="">
<source src="videopath/video.mp4" type="video/mp4">
<source src="videopath/video.webm" type="video/webm">
</video> 

After that, you are all set! You should be able to play your .mp4-format videos on Firefox with no problem.

Do you have different suggestions or ways on how to play MP4 video on firefox? Please share in the comment section.

For other tips and tricks like this, you can visit this blog’s Dev’s Nook. We will be posting all the problems and resolutions we encounter at work as much as we can to help fellow programmers and non-developers alike.

 

Previous Post
Next Post

2 Comments