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. Android system font size

Hello, Everybody.
I have a problem in my application, do not want to respond to the
system set in Setting the font size, I used the controls are Button,
TextView, and so, to how to do, be grateful!

--

2. GSOC project in android

Hi,

I'm planning to participate in GSoC 2011, and wish to do it in android with
relation to security. Is there any good project ideas available for which I
can start preparing now itself and do it for GSoC?

-- 
Thanks and Regards,
Hrishikesh Murali

-- 
.

3. Launch twitter Homepage

4. One local service multiple binding activities

5. Access sensors' data directly

6. SD Card encryption

7. Nexus & Desire