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. Compile error (no com.google.android.maps.xml)

Hi,
I have the following compiling error messages (using newest cupcake
branch)

build/core/product_config.mk:261: WARNING: adding test OTA key
============================================
TARGET_PRODUCT=eee_701
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=
============================================
make: execvp: /bin/bash: Argument list too long
----- Making installer image ------
rm -rf out/target/product/eee_701/installer
Install: out/target/product/eee_701/system/app/Mms.apk
make: *** No rule to make target `vendor/google/frameworks/maps/
com.google.android.maps.xml', needed by `out/target/product/eee_701/
system/etc/permissions/com.google.android.maps.xml'.  Stop.

It seems the recent change in build/target/product/
generic_with_google.mk causes this problem.
A temporary solution is to remove PRODUCT_COPY_FILES in it.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. How to pass the "Touch" event to application behind the transluent "Input" view?

Thank you Dianne Hackborn, I will try it.





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

3. Is there any truth in the Cupcake rollout rumors ...

4. distributing an app packaged with just emulator

5. How to pass the "Touch" event to application behind the transluent "Input" view?

6. Video thumbnail with cupcake/1.5?

7. How to pass the "Touch" event to application behind the transluent "Input" view?