framework/src/org/apache/cordova/AudioPlayer.java
/**
     * Stop playing the audio file.
     */
Stop playing the audio file.
Stop playing the audio file .
public void stopPlaying() {
        if ((this.state == MEDIA_RUNNING) || (this.state == MEDIA_PAUSED)) {
            this.mPlayer.stop();
            this.setState(MEDIA_STOPPED);
        }
        else {
            Log.d(LOG_TAG, "AudioPlayer Error: stopPlaying() called during invalid state: " + this.state);
            this.handler.sendJavascript("cordova.require('cordova/plugin/Media').onStatus('" + this.id + "', " + MEDIA_ERROR + ", { \"code\":" + MEDIA_ERR_NONE_ACTIVE + "});");
        }
    }
public void stopPlaying ( ) { if ( ( this . state == MEDIA_RUNNING ) || ( this . state == MEDIA_PAUSED ) ) { this . mPlayer . stop ( ) ; this . setState ( MEDIA_STOPPED ) ; } else { Log . d ( LOG_TAG , "AudioPlayer Error: stopPlaying() called during invalid state: " + this . state ) ; this . handler . sendJavascript ( "cordova.require('cordova/plugin/Media').onStatus('" + this . id + "', " + MEDIA_ERROR + ", { \"code\":" + MEDIA_ERR_NONE_ACTIVE + "});" ) ; } }
Stop playing the audio file.
Stop playing the audio file .