1

I implemented a video activity based on MediaPlayer and with a MediaPlayer.OnErrorListener.

In Android-L, the onError is invoked with:

onError(mp, what=1, extra=-1005)

What does code -1005 mean?

Edit: I looked in the error code definition in pvmf_return_codes.h suggested by Complete list of MediaPlayer error codes

Community
  • 1
  • 1
rds
  • 26,253
  • 19
  • 107
  • 134

2 Answers2

2

-1005 is "connection lost", see this webpage for a complete list of codes.

Mr L
  • 470
  • 6
  • 16
1

-1005 means "connection lost".

The MediaPlayer class has not been updated to contain the relevant constant yet.

rds
  • 26,253
  • 19
  • 107
  • 134