rds
rds

Reputation: 26994

AndroidMediaPlayer error code -1005

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

Answers (2)

Mr L
Mr L

Reputation: 520

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

Upvotes: 2

rds
rds

Reputation: 26994

-1005 means "connection lost".

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

Upvotes: 1

Related Questions