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. Have you used PhoneGap?

Was wondering if anybody here has used PhoneGap (http://
www.phonegap.com) before to build their Android app? Would love to
hear your thoughts on the product. I'm interviewing Andre Charland(CEO
and Co-Founder) and Joe Bowser (Android developer) of Nitobi (maker of
PhoneGap) tomorrow (April 29) at 9am pacific on the weekly MOTODEV
Android podcast at http://blogtalkradio.com/motodev  Let me know when
you can. Thanks.

Randy Ksar
randy.k...@gmail.com
http://twitter.com/djksar
--~--~---------~--~----~------------~-------~--~----~

2. I am unable to use the 1.5 sdk

Hi friends,

Currently, I am using the 1.0 android sdk (android-sdk-
windows-1.0_r2).

Now I want to move to new sdk 1.5.

I have done the following steps to install the new sdk.

1. downloaded the android-sdk-windows-1.5_pre.zip

2. unzip and ran the following command: emulator -wipe-data

3. Updated PATH variable.

4. Since I am currently using 1.0 sdk, I just tried to change the
Update Eclipse SDK Preferences
when I tried to update the Eclipse preferences, I got the error:

               "Could not find E:\android-sdk-windows-1.5_pre
\android.jar!"

5. what should I do now? what wrong I am doing.

Can any one please suggest me to solve this issue.

Thanks,
Manoj.


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

3. Widget Performance Question

4. How to start an Intent from preference page AND GET RESULTS?

5. How to detect whether the virtual keyboard is visible or not? SDK 1.5

6. how to connect adb to a target that uses DHCP to get IP addr

7. Installing Image on ADP