How to play youtube videos in an Android application?

by Dipin » Thu, 04 Dec 2008 00:56:28 GMT


Sponsored Links
 Is there any way to play a youtube video in an Android application?
Using MediaPlayer or VideoView can we play a youtube video?

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



How to play youtube videos in an Android application?

by RTM » Wed, 21 Jan 2009 00:31:47 GMT


 Hi,
  Are you able to run the YouTube video with an Android Application?.
I guess due to lack of Flash support in Android browser, we are not
able to play YouTube videos. Is there any way we can overcome this?

Regards



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


Sponsored Links


How to play youtube videos in an Android application?

by kolby » Wed, 21 Jan 2009 02:06:58 GMT


 You can send a VIEW intent with the video uri. The YouTube app on the
G1 should pick it up.

Michael




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



How to play youtube videos in an Android application?

by RTM » Wed, 21 Jan 2009 12:40:40 GMT


 Thanks Michael for the reply.  Can I also run the YouTube video with
the SDK?.

Regards





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



How to play youtube videos in an Android application?

by kolby » Wed, 21 Jan 2009 20:44:11 GMT


 The emulator doesn't provide you with the YouTube application (I don't
know about the developer phone), so the above only works on the actual
device.

Michael






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



How to play youtube videos in an Android application?

by RoelandP » Tue, 27 Jan 2009 04:27:40 GMT


 Dear Michael Kolby, can you show us a working example of how to
exactly implement this youtube view? Would be great to see this!

thank you in advance!








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



Other Threads

1. Unable to play youtube videos on SDK 1.5 emulator, but playing well on SDK 1.0 emulator

Hi friends,

I have written a small player app which plays youtube videos.

Its working fine on SDK 1.0 supported devices.

Now I tested the same app on SDK 1.5 emulator.

The video just opened and hangs on.

Here is the log I got:

W/PlayerDriver(  542): Using generic video MIO
D/AudioSink(  542): bufferCount (4) is too small and increased to 12
W/AudioFlinger(  542): write blocked for 89 msecs
W/PlayerDriver(  542): Video track fell behind
W/MediaPlayer(  729): info/warning (700, 44)
I/MediaPlayer(  729): Info (700,44)

Can any one please suggest me how to solve this?

Thanks,
Manoj.
--~--~---------~--~----~------------~-------~--~----~

2. Slide Transitions between activities - Disable in application on 1.5?

Is there anyway to disable the slide transition between activities?
This has introduced some unwanted results in our application. We have
had to build our own custom tabs because of the way the camera is
operating in our portrait mode navigation. Regardless, we would like
to be able to disable it.. Is it possible? If so, how. Thanks..

Chris.
--~--~---------~--~----~------------~-------~--~----~

3. updateing images

4. Imageviewer application development

5. Loading bitmap: java.lang.OutOfMemoryError: bitmap size

6. finding dynamic classes:

7. How can I get current SDK version in my program code ?