public static interface MediaPlayer.OnErrorListener
Modifier and Type | Method and Description |
---|---|
boolean |
onError(MediaPlayer mp,
int what,
int extra)
Called to indicate an error.
|
boolean onError(MediaPlayer mp, int what, int extra)
mp
- the MediaPlayer the error pertains towhat
- the type of error that has occurred:
extra
- an extra code, specific to the error. Typically
implementation dependent.
MediaPlayer.MEDIA_ERROR_IO
MediaPlayer.MEDIA_ERROR_MALFORMED
MediaPlayer.MEDIA_ERROR_UNSUPPORTED
MediaPlayer.MEDIA_ERROR_TIMED_OUT
MEDIA_ERROR_SYSTEM (-2147483648)
- low-level system error.