title: WPF Media Element can't play *.wmv or *.avi files
body: <p>It works fine with *.mp4 files, but i can't run any *.wmv or *.avi file.</p>
  
  <p>This is what my XAML looks like: </p>
  
  <pre><code>&lt;MediaElement x:Name="mediaElement" Margin="0" Source="C:\Users\Public\Videos\Sample Videos\Natur.wmv" Volume="1"/&gt;
  </code></pre>
  
  <p>What i tried is: </p>
  
  <ul>
  <li><p>trying different *.wmv or *.avi videos, but i can't play any of them.</p></li>
  <li><p>*.mp4 work fine.</p></li>
  </ul>
  
  <p>I have Windows Media Player version 12 (cause 10+ is recommended for using MediaElement) and i can play all those videos without any problems in Windows Media Player.</p>