[android-developers] Re: how to know the status of the MediaPlayer?

2009-03-04 Thread Marco Nelissen
On Tue, Mar 3, 2009 at 8:27 PM, manoj manojkumar.m...@gmail.com wrote: Hi, I am developing a media player application which downloads from internet and plays. Do you mean that it streams, e.g. you call MediaPlayer.setDataSource(http://yourhost.com/yourfile.mp3;), or are you really

[android-developers] Re: how to know the status of the MediaPlayer?

2009-03-04 Thread dillirao malipeddi
If you download and play files from net you will get 1) OnPreparedListener() 2) OnBufferU[dateListener() you must start player after you get onPreparedListener otherwise you will get Mediaplayer exception On Wed, Mar 4, 2009 at 9:26 PM, Marco Nelissen marc...@android.com wrote: On Tue,

[android-developers] Re: how to know the status of the MediaPlayer?

2009-03-04 Thread CKinniburgh
I would imagine onPrepared() would be one way to do this. Simply call onPrepared(), then take away the buffering message, then play. On Mar 3, 10:27 pm, manoj manojkumar.m...@gmail.com wrote: Hi, I am developing a media player application which downloads from internet and plays. so while

[android-developers] Re: how to know the status of the MediaPlayer?

2009-03-04 Thread Marco Nelissen
To be clear: you don't call onPrepared() yourself. If you set an OnPreparedListener, its onPrepared() method will be called for you. On Wed, Mar 4, 2009 at 8:03 AM, CKinniburgh chriskinnibu...@gmail.com wrote: I would imagine onPrepared() would be one way to do this.  Simply call

[android-developers] Re: how to know the status of the MediaPlayer?

2009-03-04 Thread CKinniburgh
Correct. Sorry about that, It's been one of those mornings. On Mar 4, 10:08 am, Marco Nelissen marc...@android.com wrote: To be clear: you don't call onPrepared() yourself. If you set an OnPreparedListener, its onPrepared() method will be called for you. On Wed, Mar 4, 2009 at 8:03 AM,