34

I'm implementing a MediaPlayer. Everything goes smoothly BUT each time I encounter a new error it can be very hard to find its meaning. The official doc is lacking in that area, so a website like stack overflow is the only solution and this time even this does not work (error (1;-107) btw).

So is there a centralized point where I can find the list of all the MediaPlayer error codes ? I can't find it in the official documentation, and it would be tremendously helpful to quickly diagnose new errors.

Teovald
  • 4,369
  • 4
  • 26
  • 45

3 Answers3

15

There are several places where the errors are defined.

rds
  • 26,253
  • 19
  • 107
  • 134
11

Just go through these pvmf return codes and the complete explanation of each error.

thatguy
  • 21,059
  • 6
  • 30
  • 40
Royston Pinto
  • 6,681
  • 2
  • 28
  • 46
  • 8
    For what it's worth, the links above do not reference error -107 that @Teovald was looking for. – Daniel Thompson Jul 19 '13 at 01:32
  • 1,-2147483648 Couldn't find for the second parameter this issue came when pressing home on live streaming – A_rmas Apr 21 '16 at 12:06
  • I found 1004 here: https://android.googlesource.com/platform/frameworks/base/+/b267554/media/java/android/media/MediaPlayer.java I think the issue is that some of these error codes come from the C++ player and some of them come from the media player wrapper itself. – UnitasBrooks Jan 05 '18 at 23:55
2

Your can find them in the source code here. And compare your error number with every constants given there

Krishnabhadra
  • 34,169
  • 30
  • 118
  • 167