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 -> VideoViewDemo.java.
Specify the "path" to the URL of rtsp.
I got the URL from the following URL.
-- http://gdata.youtube.com/feeds/api/videos?vq=8ZsML4uWoiw 
I used the following URL(*.3gp)
--
path = "rtsp://rtsp2.youtube.com/
CiILENy73wIaGQksopaLLwyb8RMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp"

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 {com.example.android.apis/
com.example.android.apis.media.VideoViewDemo}}
04-27 07:10:27.975: ERROR/PlayerDriver(972): HandleInformationalEvent:
type=28 UNHANDLED
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):
PVMFInfoErrorHandlingComplete
----

I have confirmed the local *.3gp file is enable to play with this
code.
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. Choosing an Image

Hi Everyone,

I'm trying to allow the user to choose an image to load into my app
using the default image browser on the phone.
Here is what I have so far:

Intent findImageIntent = new Intent(Intent.ACTION_GET_CONTENT);
findImageIntent.setType("image/*");
startActivityForResult(Intent.createChooser(findImageIntent, "Select
Picture"), IMAGE_SELECT);

This correctly launches the image chooser and I'm able to click one
which returns me to my main activity.  However, it does not load the
image I selected, returning a -1 for resultCode in onActivityResult.

Anyone know what I'm doing wrong?

-- 

2. Change application preferences programmaticaly



First, there is no single "defalut SMS application". Each device may
have different ones.

Second, the AOSP Messaging application (com.android.sms) is not part
of the Android SDK, and so there are no documented APIs for
manipulating it.


You cannot modify settings in another application, any more than other
applications can hack into yours. Sorry!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.9 Available!

-- 

3. OOT : Konsultasi GRATIS dengan dokter via Instant Messaging, 24 jam sehari, 7 hari seminggu tanpa batas

4. J2ME

5. Change application preferences programmaticaly

6. How to register a long click on a WebView somewhere else than on links?

7. geoCoder: getFromLocationName ?