Skip to content Skip to sidebar Skip to footer

Firefox Specific Html5 Video Error

Using the html5 video player, I get the following error in firefox Error Msg: No video with the supported format and mimetype found Passing Tests: Chrome / Safari / IE Code:

Solution 1:

Firefox only supports mp4 if it's installed on the operating system. MP4 support is not built into Firefox due to patent issues.

Solution 2:

You can add more than one source path in a video tag with different MIME types. I have tested that, MIME type 'video/mp4' is working in another browser but not in firefox so for firefox you have to convert your video into '.ogg' format and add it to the same source location. Then you can specify a video tag like below to target different MIME types.

<video width="320" height="240" controls>
    <source src="abc.mp4"type="video/mp4">
    <source src="abc.ogg"type="video/ogg">
</video>

When you run this code, browser will automatically select suitable MIME type and fetch the particular video from your source location so 'abc.mp4' is considered for chrome, edge, and internet explorer and abc.ogg will be for firefox.

You don't need to install adobe flash player to play this video in firefox browser. I have tested this code in firefox's version 71.0.1, I hope this can help. Happy Coding...

Post a Comment for "Firefox Specific Html5 Video Error"