title: How to playback MKV video in web browser?
body: <p>I am trying to make a MKV video with a MPEG4 video codec and AC3 audio codec available to be played online using Mozilla or Chrome. I have tried multiple methods including native HTML5, which plays back the video but no audio and from what I've read AC3 is a proprietary codec so it is not included in the supported codecs. The code for that was as follows:</p>
  <pre><code>&lt;video width='1024' height='768' controls autoplay&gt; 
      &lt;source src=&quot;path_to_src&quot; type='video/x-matroska'&gt;
  &lt;/video&gt;
  </code></pre>
  <p>I then tried to use the VLC web plugin (as I know VLC can play the files correctly) but have not yet gotten it to play any file, there doesn't seem to be a lot of consistency in the examples for using this method. Here is what I have tried so far using the VLC plugin:</p>
  <pre><code>&lt;embed type=&quot;application/x-vlc-plugin&quot; version=&quot;VideoLAN.VLCPlugin.2&quot; 
  width=&quot;1024&quot; height=&quot;768&quot; id=&quot;vlc&quot; autoplay=&quot;yes&quot; target=&quot;path_to_file&quot;&gt;&lt;/embed&gt;
  </code></pre>
  <p>The VLC page <a href="https://wiki.videolan.org/Documentation:WebPlugin/" rel="noreferrer">here</a> says to add this:</p>
  <pre><code>&lt;object classid=&quot;clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921&quot;
   codebase=&quot;http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab&quot;&gt;
  </code></pre>
  <p>But the codebase doesn't seem to exist anymore and adding that classid to the code above has no effect on the playing of the file. Both methods result in the VLC player box being made but nothing ever getting played and the developer console doesn't show any errors.</p>
  <p>So my question is does anyone know a workaround to get AC3 audio to play in the native HTML5 player or what the correct syntax is for the VLC web plugin? Or does anyone have a different player altogether they would recommend? Any and all help appreciated!</p>