[android-developers] Re: Play Video Files in Android

2009-01-05 Thread rob...@diprotector.com
Sorry, but using this way you will be able to play only audio stream from mp4 file. To have some video displayed on the screen you need to use setDisplay method of Media Player. I can't get it working on emulator. Have anyone any success with this yet? On 4 дек 2008, 07:41, brian

[android-developers] Re: Play Video Files in Android

2008-12-07 Thread AndroidGeek
public void onCreate(Bundle icicle) { super.onCreate(icicle); getWindow().setFormat(PixelFormat.TRANSLUCENT); videoHolder = new VideoView(this); videoHolder.setMediaController(new MediaController(this));

[android-developers] Re: Play Video Files in Android

2008-12-07 Thread AndroidGeek
Forgot to mention that I tried it on emulator but it didn't helped but on device it works fine. I had to push my video file to sdcard. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: Play Video Files in Android

2008-12-04 Thread Girish
Dear Jatin , if you just want to play a video on android emulator these are the steps go to this location /development/samples/ApiDemos/src/com/example/android/apis/media/ Edit MediaPlayerDemo_Video.java path = /sdcard/Yourfilename; //add your file name here Save and quit

[android-developers] Re: Play Video Files in Android

2008-12-04 Thread brian
Do this: MediaPlayer mp = new MediaPlayer(); mp.setDataSource(PATH_TO_FILE); mp.prepare(); mp.start(); Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Play Video Files in Android

2008-12-03 Thread Dave Sparks
If you want a video player app for your G1, there are several available for free in the Market. If you are looking for sample code, check out the SDK sample code. There are also several workable snippets posted in various messages on this list. On Dec 3, 9:19 pm, Jatin [EMAIL PROTECTED] wrote: