It is possible to stream videos through media player, but that
requires you to have the absolute URI to the video file on the
network.
when this URI is provided to the player, it streams it, and plays it.

however, in the case of You Tube, you don't have the URL pointing
directly to a media file.
i doubt this case.
maybe you'll have to anyhow extract the URL then give it to the media
player.



On Sep 21, 1:46 pm, Ajmer singh <ajmer.si...@evontech.com> wrote:
> I want to stream a video from Network Like From youtube.com. Is that
> possible in android emulator?.
>
> On Tue, Sep 21, 2010 at 1:34 PM, Ramaraju naga 
> <v.nagaramar...@gmail.com>wrote:
>
>
>
> > It is possible...using Mediaplayer classs.
>
> > see this code
>
> > MediaPlayer video;
>
> > setContentView(R.layout.main);
> > VideoView video = (VideoView) findViewById(R.id.video);
> > // Load and start the movie
> > video.setVideoPath("/data/samplevideo.3gp" );
> > video.start();
>
> > main layout file
>
> > <?xml version="1.0" encoding="utf-8"?>
> > <FrameLayout
> > xmlns:android="http://schemas.android.com/apk/res/android";
> > android:layout_width="fill_parent"
> > android:layout_height="fill_parent" >
> > <VideoView
> > android:id="@+id/video"
> > android:layout_height="wrap_content"
> > android:layout_width="wrap_content"
> > android:layout_gravity="center" />
> > </FrameLayout>
>
> > On Tue, Sep 21, 2010 at 1:07 PM, Ajmer Singh <ajmersing...@gmail.com>wrote:
>
> >> Hi All
>
> >> I am new to android, I have a simple question "*Is Video Streaming
> >> possible in Android Emulator*",I am using the example in Android SDK but
> >> it give me message "*Sorry Can't play this Video*".I am using Youtube
> >> Video to stream in android Emulator.
>
> >> Pls respond.
> >> --
> >> Thanks and Regards
> >> Ajmer Singh
>
> >>  --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to android-developers@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en
>
> >  --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> *Thanks and Regards
> Ajmer Singh*

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

Reply via email to