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. which layout is good for Quiz application

Hello
I am a android beginner, now i am going to design a Quiz application
for android I am very confuse about which layout i should use for
Quiz. My requirement is when user touch the answer , the next question
will appear on same screen and at the end of quiz the web view will be
generated as a result page.

Right now i don't have in depth knowledge of Layouts and switching the
view when user clicks on Answers.

Please help me at least suggest me Which layout i use. all types of
suggestions are welcome:)

Thanks
--~--~---------~--~----~------------~-------~--~----~

2. Layout file not recognized as such in eclipse

Hi all, pretty simple question:
I've created a new xml file in my layouts directory using eclipse's
"new->xml file" wizard and i want to be able to use the built in
layout editor, however, this file is not recognized as an android
layout file by the editor, but rather as an ordinary file.
everything compiles and runs okay, but i wanted to know how to do it
better next time...
Thanks
Sh...
--~--~---------~--~----~------------~-------~--~----~

3. Question about German Android-Market listing

4. System packages signatures and permissions

5. Does the g1 support play music into gsm channels

6. Determining the firmware version

7. OpenGL What Cube Face Is Facing Me