Android Media Player Error
<p>I am trying to play media player in android.But after some time it is giving following errors and the songs stop.</p>

<pre><code>09-12 21:15:37.265: ERROR/PlayerDriver(31): Command PLAYER_PREPARE completed with an error or info PVMFErrResource
09-12 21:15:37.275: ERROR/MediaPlayer(333): error (1, -17)
09-12 21:15:37.295: WARN/PlayerDriver(31): PVMFInfoErrorHandlingComplete
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333): Error updating to newly loaded content.
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333): java.io.IOException: Prepare failed.: status=0x1
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at android.media.MediaPlayer.prepare(Native Method)
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at com.calmradio.radio.StreamingMediaPlayer.createMediaPlayer(StreamingMediaPlayer.java:225)
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at com.calmradio.radio.StreamingMediaPlayer.transferBufferToMediaPlayer(StreamingMediaPlayer.java:254)
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at com.calmradio.radio.StreamingMediaPlayer.access$3(StreamingMediaPlayer.java:234)
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at com.calmradio.radio.StreamingMediaPlayer$2.run(StreamingMediaPlayer.java:175)
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at android.os.Handler.handleCallback(Handler.java:587)
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at android.os.Handler.dispatchMessage(Handler.java:92)
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at android.os.Looper.loop(Looper.java:123)
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at android.app.ActivityThread.main(ActivityThread.java:4203)
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at java.lang.reflect.Method.invokeNative(Native Method)
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at java.lang.reflect.Method.invoke(Method.java:521)
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
09-12 21:15:37.345: ERROR/com.calmradio.radio.StreamingMediaPlayer(333):     at dalvik.system.NativeStart.main(Native Method)
</code></pre>

<p>Then it starts giving this following error.</p>

<pre><code>09-12 21:15:37.915: ERROR/MediaPlayer(333): Error (-38,0)
09-12 21:15:37.915: ERROR/com.calmradio.radio.StreamingMediaPlayer$3(333): Error in MediaPlayer: (-38) with extra (0)
09-12 21:15:37.926: ERROR/MediaPlayer(333): Attempt to call getDuration without a valid mediaplayer
09-12 21:15:37.926: ERROR/MediaPlayer(333): error (-38, 0)
</code></pre>

<p>But though the media player stop,the buffering is still on.</p>

<p>These two errors are giving alternately.
Could anyone please give any solution for how to play the media player without these errors.</p>
