Why does Firefox 5 not read HTML5 video tags?
Been trying to get HTML5 video to work in Firefox 4 and 5. It doesn't work. I've used Fireogg to process the video but all I get is a big "X" on screen. The code I'm using works in Safari, Opera and Chrome. This has been going on for months now and I don't appreciate having to jump thru hoops to do such a simple thing for Firefox. It's absurd. Every other browser works. Check below for the code.
You're welcome在上下文中阅读这个答案 👍 0
Make sure that the server sends the video files with a correct and supported MIME type to make it work in Firefox.
Thanks for responding, sir! By server do you mean I have to get my service provider to configure their servers for Ogg format? The suggestions you put forth have already been incorporated six ways from Sunday in the code I provided. I also tried the "preload" which I had tried before and, like before, it didn't work.
The video on this page is send as text/plain
So you need to change the server configuration as I wrote above.
The server is an Apache server, so use AddType video/ogg .ogv
data:text/html,<object type="application/ogv" data="http://dandridgedrive.com/movies/demo_html5.ogv" width="100%" height="100%"></object>
once again, I appreciate your help on this, however, I need an answer to one thing: do I need to contact my service provider (GoDaddy) and have them add the video/ogg.ogv to their server config? They provide the hosting. I'm not running my own server.
You should be able to update or create an .htaccess file in the root folder of web page (dandridgedrive.com) and add the lines to it.
You can ask the host company for help if you can't manage it yourself.
Cool man...I'll try this out and confirm success!
You da man! Added:
AddType audio/ogg .oga AddType video/ogg .ogv AddType application/ogg .ogg
to the .htaccess file in the root of my directory and it worked. Not understanding why Firefox needs this particular hoop but I'll certainly spread it around. Thanks for your help!
Yes, I can confirm that it is now working.
USE SOURCE URL RELATIVE TO ROOT, NOT WEB PAGE!
Talk about picky!!! I had all my server settings correct but the darn ogv clip wouldn't play. The clip and the page were in the same folder, so I just had the filename as the source. Once I made the url for the source relative to the root directory of my website everything worked:
<video poster="/images/seal.png" controls> <source src="my_video.ogv" type='video/ogg; codecs="theora, vorbis"' /> </video>
<video poster="/images/seal.png" controls> <source src="/complete/folder/path/my_video.ogv" type='video/ogg; codecs="theora, vorbis"' /> </video>
Jeez Louise, Firefox! pffft.