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
  • 25,295
  • 17
  • 104
  • 127

2 Answers2

2

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

Mr L
  • 382
  • 4
  • 14
1

-1005 means "connection lost".

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

rds
  • 25,295
  • 17
  • 104
  • 127