title: Why would videojs HTML5 video not play sound in Firefox?
body: <p>I've converted an .mp4 video into .ogg and .webm formats (with ffmpeg) and used videojs to create the following web page that plays the video on all browsers (IE6-IE9, safari, chrome, opera, firefox):</p>
  
  <p><a href="http://tanguay.info/examples/testvideo" rel="nofollow noreferrer">http://tanguay.info/examples/testvideo</a></p>
  
  <p>However, Firefox (12.0) does not always play the audio, depending on how the page is accessed:</p>
  
  <p>Playing from <strong>file://</strong> with the <strong>webm</strong> source before ogg, Firefox plays <strong>fine</strong>:</p>
  
  <pre><code>&lt;source src="videos/damconnect.mp4" type='video/mp4'&gt;
  &lt;source src="videos/damconnect.webm" type='video/webm'&gt;
  &lt;source src="videos/damconnect.ogg" type='video/ogg'&gt;
  </code></pre>
  
  <p>But playing from <strong>file://</strong> with the <strong>ogg</strong> source before webm, Firefox plays <strong>without audio</strong>:</p>
  
  <p>And playing from <strong>http://</strong> with either <strong>ogg</strong> or <strong>webm</strong> first, Firefox plays <strong>without audio</strong>.</p>
  
  <p><strong>How can I get Firefox to play via http:// with audio?</strong></p>
  
  <hr>
  
  <h2>ADDENDUM:</h2>
  
  <p>Also: <strong>Opera</strong> will not play the video if <strong>ogg</strong> is listed first (just spins, doesn't start).</p>
  
  <p>I notice that my tanguay.info server seems to be sending a text/plain header with the .webm video, how can I change that?</p>
  
  <p><img src="https://i.stack.imgur.com/N2wUo.png" alt="enter image description here"></p>
  
  <hr>
  
  <h2>ANSWER:</h2>
  
  <p>I added this .htaccess file to the directory where index.htm is, which fixed the problem:</p>
  
  <pre><code>AddType audio/ogg oga ogg
  AddType video/ogg ogv
  AddType video/webm webm
  </code></pre>