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,584
  • 4
  • 48
  • 81

3 Answers3

1

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

NikkyD
  • 2,127
  • 1
  • 14
  • 30
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
  • 13,989
  • 6
  • 50
  • 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,076
  • 20
  • 14