title: Windows Phone 7 - Playing streaming video
body: <p>On WP7 platform (using C# and Silverlight) I try to play an online stream into a MediaElement...</p>
  
  <p>Here is the C# code:
  (...)</p>
  
  <pre><code>WebClient wc = new WebClient();                
  wc.OpenReadCompleted += (s, e) =&gt;
    {
     try
     {
       mediaElement.SetSource(e.Result);
     }
     catch (Exception we)
     {
       System.Diagnostics.Debug.WriteLine(we.Message);
     }
    };
  wc.OpenReadAsync(new Uri(url, UriKind.Absolute));
  </code></pre>
  
  <p>(...)
  Here is the XAML source code:</p>
  
  <p><code>&lt;MediaElement Height="316" HorizontalAlignment="Left" Margin="6,6,0,0" Name="mediaElement" VerticalAlignment="Top" Width="450" AutoPlay="False" /</code>></p>
  
  <p>The url is type of <a href="http://.../Manifest" rel="nofollow">http://.../Manifest</a> and the format is a one supported by the platform.</p>
  
  <p>When SetSource is called then an exception is raised with the following message
  "Stream must be of type IsolatedStorageFileStream".</p>
  
  <p>What do I do wrong?</p>
  
  <p>Thanks in advance for some help
  Cheers</p>