Reputation: 26994
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
Upvotes: 1
Views: 1516
Reputation: 520
-1005 is "connection lost", see this webpage for a complete list of codes.
Upvotes: 2
Reputation: 26994
-1005 means "connection lost".
The MediaPlayer class has not been updated to contain the relevant constant yet.
Upvotes: 1