title: Android MediaPlayer with Soundcloud Stream Redirect
body: <p>I am currently using Android MediaPlayer to stream music in an Android app. I have gotten the Redirect URL from the Soundcloud stream_url, which works by itself in a browser.</p>
  
  <p>However, when I use this redirect_url as the source for SetDataSource, mediaplayer won't work.</p>
  
  <pre><code>mediaplayer.setDataSource(redirect_url);
  mediaplayer.prepareAsync();
  </code></pre>
  
  <p>When using an ordinary mp3 url, this works fine. Something about Soundcloud's redirected URL is giving my app problems, even though the redirect url works fine if placed in a browser. Any ideas of what my problem is?</p>