you have to start the player in onprepared listener and also check the android media player compatibility with the media file codec ( which you want to play)
On Wed, Feb 17, 2010 at 3:39 PM, prachi <prachi.tya...@wipro.com> wrote: > hey hiii > > I didnt get u u mean to say dat the prob is wid the emulator > > actually my code looks lyk dis --->i hav saved my audio file on > server... > n den runnig dis code---- > > MediaPlayer m=new MediaPlayer(); > m.setDataSource(path); //path is a String variable containing the > path of audio file stored on server side > m.prepare(); > m.start(); > > Error it shows is---->>>java.io.IOException:Prepare Failed:status=0x1 > > can u plzz tell dat this error is coming bcozz dere is some problem > with the emulator. > On Feb 4, 10:37 am, prachi <prachi.tya...@wipro.com> wrote: > > Hey hii all > > > > I hav a code toruna start a media player a play anaudiofilesaved > > in my local disk.But the code is not running and it is showing an > > exception:---- > > > > PlayerDriver< PVMFInfoErrorHandlingComplete > > > > Plzz help me out!! > > -- > 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<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Thank you Dilli Rao -- 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