framework/src/org/apache/cordova/AudioPlayer.java
/**
     * Stop recording and save to the file specified when recording started.
     */
Stop recording and save to the file specified when recording started.
Stop recording and save to the file specified when recording started .
public void stopRecording() {
        if (this.recorder != null) {
            try{
                if (this.state == MEDIA_RUNNING) {
                    this.recorder.stop();
                    this.setState(MEDIA_STOPPED);
                }
                this.moveFile(this.audioFile);
            }
            catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
public void stopRecording ( ) { if ( this . recorder != null ) { try { if ( this . state == MEDIA_RUNNING ) { this . recorder . stop ( ) ; this . setState ( MEDIA_STOPPED ) ; } this . moveFile ( this . audioFile ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } }
Stop recording and save to the file specified when recording started.
Stop recording and save to the file specified when recording started .