title: “Prepare failed.: status=0x1” Exception occurred when streaming
body: <p>I am using StreamProxy class in order to stream with using <code>MediaPlayer</code>. So, i wrote some codes as follow to start local server :</p>
  
  <pre><code>ProxyStream proxyStream = new ProxyStream();
  proxyStream.init();
  proxyStream.start();
  </code></pre>
  
  <p>So, the local server is created successfully and the special port has obtained. (<code>port 41257</code> obtained). I know that we can access web files with try the link as <code>http://127.0.0.1:41257/http://printf.ir/music/01.mp3</code>. Now, i want to stream with using MediaPlayer object and try the code as follow :</p>
  
  <pre><code>this.mediaPlayer.setDataSource("127.0.0.1:41257/http://printf.ir/music/01.wma");
  this.mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
  this.mediaPlayer.prepare();
  </code></pre>
  
  <p>On run time, the exception occurred in third line of code, and i pasted it here :</p>
  
  <pre><code>05-17 18:49:49.989: W/System.err(10444): java.io.IOException: Prepare failed.: status=0x1
  05-17 18:49:49.989: W/System.err(10444): at android.media.MediaPlayer.prepare(Native Method)
  05-17 18:49:49.989: W/System.err(10444): at com.exmaple.stream.StreamMediaPlayerActivity.onClick(StreamMediaPlayerActivity.java:83)
  05-17 18:49:49.989: W/System.err(10444): at android.view.View.performClick(View.java:2485)
  05-17 18:49:49.989: W/System.err(10444): at android.view.View$PerformClick.run(View.java:9080)
  05-17 18:49:49.989: W/System.err(10444): at android.os.Handler.handleCallback(Handler.java:587)
  05-17 18:49:49.989: W/System.err(10444): at android.os.Handler.dispatchMessage(Handler.java:92)
  05-17 18:49:49.989: W/System.err(10444): at android.os.Looper.loop(Looper.java:130)
  05-17 18:49:49.989: W/System.err(10444): at android.app.ActivityThread.main(ActivityThread.java:3687)
  05-17 18:49:49.989: W/System.err(10444): at java.lang.reflect.Method.invokeNative(Native Method)
  05-17 18:49:49.989: W/System.err(10444): at java.lang.reflect.Method.invoke(Method.java:507)
  05-17 18:49:49.989: W/System.err(10444): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
  05-17 18:49:49.989: W/System.err(10444): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
  05-17 18:49:49.989: W/System.err(10444): at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>How can i stream with using MediaPlayer ?! Please help me to solve this problem.</p>
  
  <p>Thanks in your advance :)</p>