0

I have a MediaPlayer instance for local audio files. It worked, but after some changes (bad for me, can't figure out what exactly it was) this error began to appear: //message

Prepare failed.: status=0xFFFFFFFC

//in LogCat

error(-1, 4)
MEDIA_ERROR(mPreparySync) signal application thread

So, what are possible reasons? File to play exists.

Pavel Oganesyan
  • 6,774
  • 4
  • 46
  • 84

3 Answers3

1

Out of the blue i would guess the file format does not fit

NikkyD
  • 2,209
  • 1
  • 16
  • 31
1

I 've gotten this error evertime I've tried to play a non supported file format like wmv. So I'd check that first Check these links: Android MediaPlayer not preparing. Error (1, -4) and MediaPlayer.setDataSource causes IOException for valid file?

Community
  • 1
  • 1
Vrashabh Irde
  • 14,129
  • 6
  • 51
  • 103
0

Check the file path first, make sure you have a valid Uri. An other reason would be that you instanciate to many players.

Damien Praca
  • 3,126
  • 21
  • 14