I just found my mistake. It was the file that was faulty. I tried opening it in a amr player and the same thing was happening.
But in general, is there any doc so that we come to know the meaning of the error codes. Thanks, Priyank On Thu, Aug 26, 2010 at 10:47 AM, Priyank <priyankvma...@gmail.com> wrote: > Hi, > > I am getting an error (1,-1004) when i try to play a .amr file. > The file is about 15 seconds long and after playing for about 4 > seconds, it stops and I get this error. > > I am making the calls just as mentioned in the docs.. > MediaPlayer mp = new MediaPlayer(); > mp.setDataSource(PATH_TO_FILE); > mp.prepare(); > mp.start(); > > Could anyone please help me out here. > Is there any documentation related to Media player errors.. > > Thanks, > Priyank -- 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