Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

Does not play OGG or WebM

  • 3 відповіді
  • 8 мають цю проблему
  • 2 перегляди
  • Остання відповідь від cor-el

more options

I can drop an OGG or WebM video directly onto Firefox and it will play but when using the HTML 5 Video tag the video will not play. The tags play the appropriate video in Safari and Chrome fine but not in Firefox. Here is the code:

<video width="960" height="400" controls="controls" autoplay="autoplay" loop="loop" poster="http://theactingcenterla.com/wp-content/uploads/2010/04/Phylicia-Jackson-HomeHeader3.jpg">
<source src="http://theactingcenterla.com/wp-content/uploads/PromoVideo-WebPage960.ogv" type='video/ogg; codecs="theora, vorbis"' />
<source src="http://theactingcenterla.com/wp-content/uploads/PromoVideo-WebPage960-600k.mp4" type="video/mp4" />
<source src="http://theactingcenterla.com/wp-content/uploads/PromoVideo-WebPage960.webm" type='video/webm; codecs="vp8.0, vorbis"'/> 
</video>
I can drop an OGG or WebM video directly onto Firefox and it will play but when using the HTML 5 Video tag the video will not play. The tags play the appropriate video in Safari and Chrome fine but not in Firefox. Here is the code: <pre><nowiki><video width="960" height="400" controls="controls" autoplay="autoplay" loop="loop" poster="http://theactingcenterla.com/wp-content/uploads/2010/04/Phylicia-Jackson-HomeHeader3.jpg"> <source src="http://theactingcenterla.com/wp-content/uploads/PromoVideo-WebPage960.ogv" type='video/ogg; codecs="theora, vorbis"' /> <source src="http://theactingcenterla.com/wp-content/uploads/PromoVideo-WebPage960-600k.mp4" type="video/mp4" /> <source src="http://theactingcenterla.com/wp-content/uploads/PromoVideo-WebPage960.webm" type='video/webm; codecs="vp8.0, vorbis"'/> </video></nowiki></pre>

Змінено cor-el

Обране рішення

That is a problem with the server.

The WebM and OGG file are send as text/plain and that doesn't work with the video tag.


You need to make sure that you send the file with a supported MIME type.

AddType audio/ogg oga ogg
AddType video/ogg ogv
AddType video/webm .webm
Читати цю відповідь у контексті 👍 0

Усі відповіді (3)

more options

Вибране рішення

That is a problem with the server.

The WebM and OGG file are send as text/plain and that doesn't work with the video tag.


You need to make sure that you send the file with a supported MIME type.

AddType audio/ogg oga ogg
AddType video/ogg ogv
AddType video/webm .webm
more options

Worked perfectly. We're on GoDaddy so I just added the above 3 lines to the root level .htaccess file and it worked like a charm.

Thanks!