Confirm MediaPlayer automatic retry on streaming HTTP error

by Skyler » Fri, 20 May 2011 09:34:08 GMT


Sponsored Links
 Hi all,
I have an app which streams mp3s from the web, proxied through a local HTTP 
server. At times, this local proxy server returns an HTTP error. It seems 
that upon receiving this error during the prepare state, the MediaPlayer 
makes one more attempt to stream, sending another request to the URL 
specified in setDataSource().

thread, I can see that after sending an HTTP error response, another request 
for the same URL is made. Can someone confirm this behavior? I'm seeing this 
from the emulator running a 1.6 AVD.

Additionally, can I disable this automatic retry? Is there a specific HTTP 
error code that I can send that will prevent this retry?

Thanks!

-- 



Other Threads

1. opening H264 file in binary format

anybody can help me how to open h264 video file in binary format?

--~--~---------~--~----~------------~-------~--~----~

2. now that nothing interesting can be done with audio in 1.0...

That is, no reading from any kind of byte stream, ie.
AudioInputStream, when can we expect this promised functionality.
It's the one thing that really interested me in Android and I'm really
sorry to see it go.  Any ETA or news about when this will become
available?  I haven't seen anything in the road map beyond the 1.0
release.
--~--~---------~--~----~------------~-------~--~----~

3. Comming back to your application from a phone call

4. Irda support

5. Sensor values returned by tricorder

6. How can get the source code of the embedded app Pictures?

7. Android Maps application source code