Error playing YouTube video in my application

by awwa » Mon, 27 Apr 2009 16:34:51 GMT

Sponsored Links
 I'm trying to play streaming video(*.3gp) with android SDK 1.5 pre.
I have customized the APIDemo ->
Specify the "path" to the URL of rtsp.
I got the URL from the following URL.
I used the following URL(*.3gp)
path = "rtsp://

But following error has occur.
Please help me what is happen.

04-27 07:10:24.238: WARN/ActivityManager(587): Launch timeout has
expired, giving up wake lock!
04-27 07:10:24.265: WARN/ActivityManager(587): Activity idle timeout
for HistoryRecord{43603ba0 {}}
04-27 07:10:27.975: ERROR/PlayerDriver(972): HandleInformationalEvent:
04-27 07:10:28.584: WARN/PlayerDriver(972): Using generic video MIO
04-27 07:10:44.975: ERROR/PlayerDriver(972): Command PLAYER_PREPARE
completed with an error or info PVMFFailure
04-27 07:10:44.985: ERROR/MediaPlayer(1095): error (1, -1)
04-27 07:10:44.995: ERROR/MediaPlayer(1095): Error (1,-1)
04-27 07:10:45.515: WARN/PlayerDriver(972):

I have confirmed the local *.3gp file is enable to play with this
path = "/sdcard/747.3gp"


Error playing YouTube video in my application

by Dave Sparks » Tue, 28 Apr 2009 05:26:56 GMT

 I assume this in the emulator. I believe the issue is that the
emulator does not forward the UDP packets you need for the RTP
session. This should work on a real device.


Sponsored Links

Error playing YouTube video in my application

by awwa » Tue, 28 Apr 2009 13:58:38 GMT

 Thanks for your replying.
The issue is certainly in the emulator.
(I have no device of 1.5 android yet.)
I will try this in the real device after getting it.


Other Threads

1. ImageButton and focusable

For an unknown reason when I set the focusable property to false in an
imagebutton and run my app, the property seems to be doing nothing,
the widget can still gain focus, is there any trick for preventing
this? For Button views the latter seems to work just fine.


2. problems when setting / removing color filter to image views


The problem comes from a rather unknown feature of resources and
drawables. The state of several drawables that come from the same
resource is shared across all the drawables. Take this example:

Drawable d1 = getResources().getDrawable(R.drawable.my_image);
Drawable d2 = getResources().getDrawable(R.drawable.my_image);

d2.setAlpha(0); // Sets the alpha value of d2 *and* d1 to 0

The two drawables are different objects but they both use the same
"constant state" (it's the actual name of the implementation) which
contains, among other things, the alpha value, the bitmap... and the
color filter.

This behavior comes from the necessity to optimize the memory usage
and the loading times of applications. By doing so we have only one
constant state used by all buttons across all applications.

Romain Guy
Android framework engineer

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them


3. Video and Audio format Supported by Android

4. Using OpenIntents SensorSimulator

5. "Unable to look up (port 9418) (Name or service not known)" during sync up

6. TextView - line break

7. Import java.microedition.*... A solution please...