io.vov.vitamio
Interface MediaPlayer.OnErrorListener

Enclosing class:
MediaPlayer

public static interface MediaPlayer.OnErrorListener


Method Summary
 boolean onError(MediaPlayer mp, int what, int extra)
          Called to indicate an error.
 

Method Detail

onError

boolean onError(MediaPlayer mp,
                int what,
                int extra)
Called to indicate an error.

Parameters:
mp - the MediaPlayer the error pertains to
what - the type of error that has occurred:
extra - an extra code, specific to the error. Typically implementation dependant.
Returns:
True if the method handled the error, false if it didn't. Returning false, or not having an OnErrorListener at all, will cause the OnCompletionListener to be called.