title: Stream audio on Windows Phone 8 using MediaElement
body: <p>I'm trying to stream audio from an online source to a Windows Phone 8 app using MediaElement.</p>
  
  <p>I have the MediaElement in the visual tree and it works with local files but when I try to use  files via a URL nothing plays and I get a MediaFailed exception. The media failed error has the code 3100. It neither worked with AAC or MP3 but worked with video.</p>
  
  <p>My code:</p>
  
  <pre><code>sound.Source = new Uri(url, UriKind.RelativeOrAbsolute);
        sound.MediaFailed += sound_MediaFailed;
        sound.AutoPlay = true;
  </code></pre>
  
  <p>Maybe it isn't possible to do it this way, but if anyone could help it'd be appreciated.</p>
  
  <p>UPDATE:</p>
  
  <p>The file I've tried to use is <a href="http://rapidshare.com/files/2276097672/firework.aac" rel="nofollow">http://rapidshare.com/files/2276097672/firework.aac</a>. This file works locally on the phone but not online. Maybe I've misunderstood and I can't stream directly from this web location.</p>