You'll find a complete list of codecs and file formats here:

http://developer.android.com/guide/appendix/media-formats.html

On Feb 10, 3:59 pm, "K. Chen" <grssmount...@gmail.com> wrote:
> Thanks; it works.. A somewhat related question.
>
> In addition to 3GPP video file, does Android support MP4 as well? Any plan
> for MP4 video (if it's not doing it), in light of the trend that more and
> more codec chip vendors are supporting it.
>
> -KC
>
> On Tue, Feb 10, 2009 at 9:56 AM, Dave Sparks <davidspa...@android.com>wrote:
>
>
>
> > The problem is that your video path is on your host machine. You have
> > to remember that the emulator is actually emulating an ARM processor
> > run its own Linux kernel. The file system is not your host computer,
> > but a virtual file system within the Linux kernel emulation.
>
> > Use mksdcard to create an SD card virtual file system (there are
> > options to specify the size):
>
> > mksdcard sdcard.img
>
> > Start the emulator and tell it to use your SD card image:
>
> > emulator -sdcard sdcard.img
>
> > Copy the file from your host computer to the virtual SD card image:
>
> > adb push D:/Profiles/mgia0013/MyDocuments/Android/Movies/HomeAlone.
> > 3gp /sdcard
>
> > Now change the path in your setVideoPath:
>
> > video.setVideoPath("/sdcard/HomeAlone.3gp");
>
> > On Feb 10, 8:55 am, "K. Chen" <grssmount...@gmail.com> wrote:
> > > Nope. I was using a sample code from a book (I forgot the name). It seems
> > > fairly straightforward (below). Of course, I'm newbie, so please bear
> > with
> > > me. Thanks.
>
> > > public class VideoDemo extends Activity {
> > >     private VideoView video;
> > >     private MediaController ctlr;
>
> > >     @Override
> > >     public void onCreate(Bundle icicle) {
> > >         super.onCreate(icicle);
> > >         getWindow().setFormat(PixelFormat.TRANSLUCENT);
> > >         setContentView(R.layout.main);
>
> > >         Button show=(Button)findViewById(R.id.show);
>
> > >         show.setOnClickListener(new View.OnClickListener() {
> > >             public void onClick(View view) {
> > >                 ctlr.show();
> > >             }
> > >         });
>
> > >         video=(VideoView)findViewById(R.id.video);
> > >         video.setVideoPath("D:/Profiles/mgia0013/My
> > > Documents/Android/Movies/HomeAlone.3gp");
>
> > >         ctlr=new MediaController(this);
> > >         ctlr.setMediaPlayer(video);
> > >         video.setMediaController(ctlr);
> > >         video.requestFocus();
> > >     }
>
> > > On Tue, Feb 10, 2009 at 12:00 AM, Dave Sparks <davidspa...@android.com
> > >wrote:
>
> > > > Can you elaborate a bit more on how you are playing the file? Did you
> > > > write your own video player?
>
> > > > On Feb 9, 2:57 pm, KC <grssmount...@gmail.com> wrote:
> > > > > I have a video file in 3gpp format and I can use QuickTime to play
> > it.
> > > > > But when tried with the SDK Windows emulator, I got the error msg:
>
> > > > > [2009-02-09 14:46:23 - DeviceMonitor]Error reading jdwp list: EOF
> > > > > [2009-02-09 14:46:23 - DeviceMonitor]Connection Failure when starting
> > > > > to monitor device 'emulator-5554' : device (emulator-5554) request
> > > > > rejected: device not found
>
> > > > > Any ideas??
>
> > > > > -KC
--~--~---------~--~----~------------~-------~--~----~
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