Search code examples
androidandroid-mediaplayerandroid-5.0-lollipop

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


Solution

  • -1005 means "connection lost".

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