Actually I meant the VideoViewDemo. It should read like this:
mVideoView.setVideoPath(path);
mVideoView.setMediaController(new MediaController(this));
mVideoView.requestFocus();
mVideoView.start(); // add this line to play
BTW, anyone know why I'm not seeing my posts via email? They show up
on the web site but not all the time via email. I'm using Thunderbird
on Ubuntu 8.04.
Brian Conrad
JyotishTools.com
On Jun 6, 2:49 pm, Brian Conrad <[email protected]> wrote:
> From my experiments the MediaPlayer only seems to handle 3GPP format
> well though somewhat. Now I'm only running the emulator on a 2.4 ghz
> machine on Ubuntu which may not be fast enough to process video. I had
> similar results on an 3.4 ghz XP Pro machine. I may install the SDK on
> a Vista laptop with a dual core to see if it does better. Note that
> none of my test videos including MP4 AVC that should play had no
> problems playing on even the 2.4 ghz machine with MPlayer or VLC. As
> for flash videos that is probably another wrapper that the MediaPlayer
> needs to deal with.
>
> Note there is a bug in the VideoPlayerDemo too. A start() call needs to
> be added after the initialization or nothing happens. ;-)
>
> Brian Conrad
> JyotishTools.com
>
> manoj wrote:
> > Hi,
>
> > I want to go with the code specified in the following link
>
> >http://groups.google.com/group/android-developers/browse_thread/threa...
>
> > But I want always the youtube url should be played in default yutube
> > player provided by android. I want to avoid showing the two options:
> > browser and youtube.
>
> > How can I achieve this?
>
> > can any one please help me.
>
> > Thanks,
> > Manoj.
>
> > On Jun 6, 11:50 am, manoj <[email protected]> wrote:
>
> >> Hi,
>
> >> I want to play youtube videos in my app.
>
> >> by searching in the forum, I found the below link:
>
> >>http://groups.google.com/group/android-developers/browse_thread/threa...
>
> >> It was nice. But I want to my app (MediaPlayer/VideoView) to play the
> >> youtube videos.
>
> >> Can any one please suggest me?
>
> >> Thanks,
> >> Manoj.
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---