title: Set MIME type of Javascript audio object
body: <p>To support HLS audio streaming on a HTML5 Audio tag, we can successfully use this MIME type:</p>
  
  <pre><code>&lt;audio autoplay&gt;
      &lt;source src="AUDIO_URL" type="application/x-mpegURL"&gt;
  &lt;/audio&gt;
  </code></pre>
  
  <p>However if I create the audio element programmatically, I can't seem to specify what the MIME type should be.  Because I'm not able to provide that specific MIME type for HLS audio streaming (m3u8 extension) the audio playback fails.</p>
  
  <p>How can I specify a MIME type when creating a new <code>Audio()</code> in code?</p>