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 <[email protected]>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 <[email protected]>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 [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<android-developers%[email protected]>
>> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> 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 [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

Reply via email to