You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2017/02/01 05:12:58 UTC

cordova-plugin-media git commit: CB-12411: Stoping a Paused Recording throws illegal state exception

Repository: cordova-plugin-media
Updated Branches:
  refs/heads/master cd2f95b3f -> 822b51464


CB-12411: Stoping a Paused Recording throws illegal state exception


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/commit/822b5146
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/tree/822b5146
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/diff/822b5146

Branch: refs/heads/master
Commit: 822b514649fae900dfdc28248b18e81642967906
Parents: cd2f95b
Author: Simon MacDonald <si...@gmail.com>
Authored: Wed Feb 1 00:12:46 2017 -0500
Committer: Simon MacDonald <si...@gmail.com>
Committed: Wed Feb 1 00:12:46 2017 -0500

----------------------------------------------------------------------
 src/android/AudioPlayer.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-media/blob/822b5146/src/android/AudioPlayer.java
----------------------------------------------------------------------
diff --git a/src/android/AudioPlayer.java b/src/android/AudioPlayer.java
index 171cde9..972dfd0 100644
--- a/src/android/AudioPlayer.java
+++ b/src/android/AudioPlayer.java
@@ -271,6 +271,7 @@ public class AudioPlayer implements OnCompletionListener, OnPreparedListener, On
                     this.moveFile(this.audioFile);
                 } else {
                     LOG.d(LOG_TAG, "pause recording");
+                    this.setState(STATE.MEDIA_PAUSED);
                 }
             }
             catch (Exception e) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org