[android-developers] Re: MediaPlayer not running - just blank screen

2009-03-05 Thread nithin
Thanks marco, at last got it... thanks for your valuable input.. Nithin On Mar 5, 10:02 pm, Marco Nelissen wrote: > That won't work for a number of reasons: > - when you create theMediaPlayerand call start(), your display isn't > ready yet. You need to wait for the surfaceCreated() callback. >

[android-developers] Re: MediaPlayer not running - just blank screen

2009-03-05 Thread Marco Nelissen
That won't work for a number of reasons: - when you create the MediaPlayer and call start(), your display isn't ready yet. You need to wait for the surfaceCreated() callback. - you need to use the version of MediaPlayer.create() that takes a SurfaceHolder parameter. (this was all discussed on this

[android-developers] Re: MediaPlayer not running - just blank screen

2009-03-05 Thread nithin
ya, i saw log messages, in that, getVideoSize returning -1... what may be the reason for that, any idea please.. Nithin 03-05 14:59:43.072: INFO/(324): 111 03-05 14:59:43.113: INFO/222(324): 03-05 14:59:43.123: INFO/333(324): 33

[android-developers] Re: MediaPlayer not running - just blank screen

2009-03-05 Thread nithin
no, there is no error in logcat... i put log messages every where and logcat showing all messages, but no video is playing.. Nithin On Mar 5, 2:48 pm, dillirao malipeddi wrote: > did you get any error in ddms logcat ? > may  be your player gives error while try to play > > > > On Thu, Mar 5, 20

[android-developers] Re: MediaPlayer not running - just blank screen

2009-03-05 Thread dillirao malipeddi
did you get any error in ddms logcat ? may be your player gives error while try to play On Thu, Mar 5, 2009 at 3:14 PM, nithin wrote: > > Thanks for your reply, but still not working.. Now i am trying with > this code... > > > > import android.app.Activity; > import android.media.MediaPlayer;

[android-developers] Re: MediaPlayer not running - just blank screen

2009-03-05 Thread nithin
Thanks for your reply, but still not working.. Now i am trying with this code... import android.app.Activity; import android.media.MediaPlayer; import android.os.Bundle; import android.util.Log; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.widget.MediaContr

[android-developers] Re: MediaPlayer not running - just blank screen

2009-03-04 Thread Dave Sparks
You need to tell the mediaplayer where to display the video with setDisplaySurface(). Check out the media demo apps on developer.android.com. On Mar 4, 11:45 pm, Nithin wrote: > hi, > > I tried a simple mediaplayer application, just to run a .3gp file. > First, i put the .3gp file in "Raw" folde

[android-developers] Re: MediaPlayer not running - just blank screen

2009-03-04 Thread dillirao malipeddi
you must set parameters for playing video see api demos - >examples media -> video demo player On Thu, Mar 5, 2009 at 1:15 PM, Nithin wrote: > > hi, > > I tried a simple mediaplayer application, just to run a .3gp file. > First, i put the .3gp file in "Raw" folder and tried to run, but > nothin