Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

not all webm files are playing in firefox

I have coded webm videos with Miro Video Converter and also with FreeMakeVideo Converter with the same result: some webm videos play in Firefox while others won't when embedded with the html5 video tag.

In Chrome they ALL play correctly.

In my Apache configuration I have added: AddType video/webm .webm

I have also added a .htaccess file with the same: AddType video/webm .webm

Doesn't make any difference. Some of the webm files play fine, while others don't play at all.

If I open the webm files straight in Firefox they ALL work fine, but in the video tag only some of them work.

Any ideas?????

like image 962
gheos.com Avatar asked Dec 04 '25 15:12

gheos.com


1 Answers

I know this question is old but I actually just had this problem the other day and I figure I'd answer it for any future adventurer who encounters the same issue.

This is a known issue in Firefox. Sometimes, it just doesn't want to play webm files. I don't know why, I didn't bother to figure it out. I was able to figure it out by switching the order of my source tags.

I used to have it like this:

<source src="myVideo.webm" type="video/webm">
<source src="myVideo.mp4" type="video/mp4">
<source src="myVideo.ogv" type="video/ogv">

This way, firefox came it, saw webm first and chose to try and opne that. Some issue was causing it to not be able to play but, since it supports that format, it used that source anyway. To fix this I did the following:

<source src="myVideo.ogv" type="video/ogv">
<source src="myVideo.mp4" type="video/mp4">
<source src="myVideo.webm" type="video/webm">

This way when firefox reads the sources, it sees the ogv file first and chooses to open it since it can support it. Haven't had an issue since.

Hope this helps someone...

like image 166
Vladimir Rosca Avatar answered Dec 07 '25 04:12

Vladimir Rosca



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!