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-
>connect() returned -1004

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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to