title: MediaElement in WPF play video from stream?
body: <p>I have an element:</p>
  
  <pre><code>&lt;MediaElement x:Name="bgvideo" Width="800" Height="600" /&gt;
  </code></pre>
  
  <p>and I have a stream video:</p>
  
  <pre><code>Stream stream = obj.GetFileStream();
  </code></pre>
  
  <p>I want to use stream object to source of <code>MediaElement</code>, but default <code>MediaElement</code>  use <code>source</code> attribute.</p>