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?????
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With