framework/src/org/apache/cordova/AudioPlayer.java
/**
     * Callback to be invoked when there has been an error during an asynchronous operation
     *  (other errors will throw exceptions at method call time).
     *  
     * @param mPlayer           the MediaPlayer the error pertains to
     * @param arg1              the type of error that has occurred: (MEDIA_ERROR_UNKNOWN, MEDIA_ERROR_SERVER_DIED)
     * @param arg2              an extra code, specific to the error.
     */
Callback to be invoked when there has been an error during an asynchronous operation
(other errors will throw exceptions at method call time).

@param mPlayer           the MediaPlayer the error pertains to
@param arg1              the type of error that has occurred: (MEDIA_ERROR_UNKNOWN, MEDIA_ERROR_SERVER_DIED)
@param arg2              an extra code, specific to the error.
Callback to be invoked when there has been an error during an asynchronous operation ( other errors will throw exceptions at method call time ) . @param mPlayer the MediaPlayer the error pertains to @param arg1 the type of error that has occurred : ( MEDIA_ERROR_UNKNOWN MEDIA_ERROR_SERVER_DIED ) @param arg2 an extra code specific to the error .
public boolean onError(MediaPlayer mPlayer, int arg1, int arg2) {
        Log.d(LOG_TAG, "AudioPlayer.onError(" + arg1 + ", " + arg2 + ")");
        this.mPlayer.stop();
        this.mPlayer.release();
        this.handler.sendJavascript("cordova.require('cordova/plugin/Media').onStatus('" + this.id + "', { \"code\":" + arg1 + "});");
        return false;
    }
public boolean onError ( MediaPlayer mPlayer , int arg1 , int arg2 ) { Log . d ( LOG_TAG , "AudioPlayer.onError(" + arg1 + ", " + arg2 + ")" ) ; this . mPlayer . stop ( ) ; this . mPlayer . release ( ) ; this . handler . sendJavascript ( "cordova.require('cordova/plugin/Media').onStatus('" + this . id + "', { \"code\":" + arg1 + "});" ) ; return false ; }
Callback to be invoked when there has been an error during an asynchronous operation
  (other errors will throw exceptions at method call time).
Callback to be invoked when there has been an error during an asynchronous operation ( other errors will throw exceptions at method call time ) .
// TODO: Not sure if this needs to be sent? // Send error notification to JavaScript