in src/android/AudioPlayer.java [395:406]
public void stopPlaying() {
if ((this.state == STATE.MEDIA_RUNNING) || (this.state == STATE.MEDIA_PAUSED)) {
this.player.pause();
this.player.seekTo(0);
LOG.d(LOG_TAG, "stopPlaying is calling stopped");
this.setState(STATE.MEDIA_STOPPED);
}
else {
String errorMessage = "AudioPlayer Error: stopPlaying() called during invalid state: " + this.state.ordinal();
sendErrorStatus(MEDIA_ERR_NONE_ACTIVE, errorMessage);
}
}