MediaPlayer Breaks in FroYo

by scp89 » Thu, 27 May 2010 23:43:21 GMT


Sponsored Links
 I have an mp4 from youtube that I'm trying to stream. It works
perfectly in Android 2.1, but in Android 2.2 it reports a http 303
error. But If I dump the headers of the file, it reports a 200 (OK).
Any Idea why the new mediaplayer in 2.2 would report this error, when
everything works fine in 2.1?

Here's a example:

CODE
-----
url = " http://www.youtube.com/get_video? 
video_id=FyljLIeajbs&t=vjVQa1PpcFNBUUHnpqWCySeF0h3BP-
xLlLPqbumzoBk==&fmt=17";

mp.reset();
mp.setDataSource(url);
mp.prepare();

RESULT IN ANDROID 2.1
---------------------
Song streams correctly, as usual

RESULT IN ANDROID 2.2
----------------------
05-26 04:22:36.087: INFO/StagefrightPlayer(33):
setDataSource(' http://www.youtube.com/get_video? 
video_id=FyljLIeajbs&t=vjVQa1PpcFNBUUHnpqWCySeF0h3BP-
xLlLPqbumzoBk==&fmt=17')

05-26 04:22:36.407: ERROR/HTTPDataSource(33): HTTP request failed w/
http
status 303

05-26 04:22:36.407: INFO/AwesomePlayer(33): mConnectingDataSource-

05-26 04:22:36.447: ERROR/MediaPlayer(265): error (1, -1004)

05-26 04:22:36.447: WARN/System.err(265): java.io.IOException:
Prepare
failed.: status=0x1

--



Other Threads

1. when will android 1,6 OTA IN SINGAPORE, WHY?

was wondering, who are the one release the android 1.6 in a region?
telecom? google?
by 3g? can i get it on wifi?

so when will it OTA in singapore

--

2. UK to US publisher account

Hi,

I have a UK publisher account and a couple of apps. I notice around
25% of the orders get cannceled becase of payment declined, I assume
this is due to the apps being in GBP

I am happy to create a new account and republish the apps in USD. Can
I create a US publisher account?

Can someone please advice me

thanks

Thanks

--

3. need Beta testers for hobby Apple //e emulator for Android

4. sending email via smtp in android

5. Is forcing users to enter their order number too much to ask?

6. Trouble in generating the MD5 Fingerprint for SDK Debug Certificate to work on map API's

7. Contacts sync is not working