Skip to content

Commit

Permalink
Fixing issues on Android 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lucViana committed Dec 2, 2015
1 parent 5f7b40e commit b6da930
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/android/AudioHandler.java
Expand Up @@ -100,7 +100,8 @@ protected void getMicPermission(int requestCode)
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
CordovaResourceApi resourceApi = webView.getResourceApi();
PluginResult.Status status = PluginResult.Status.OK;
messageChannel = callbackContext;
/*I commented this line cuz' statusCallback was not working*/
//messageChannel = callbackContext;
String result = "";

if (action.equals("startRecordingAudio")) {
Expand Down
3 changes: 2 additions & 1 deletion src/android/AudioPlayer.java
Expand Up @@ -351,7 +351,8 @@ public void onPrepared(MediaPlayer player) {
// Listen for playback completion
this.player.setOnCompletionListener(this);
// seek to any location received while not prepared
this.seekToPlaying(this.seekOnPrepared);
/* I commented this line to work on Android 6.0 */
//this.seekToPlaying(this.seekOnPrepared);
// If start playing after prepared
if (!this.prepareOnly) {
this.player.start();
Expand Down

0 comments on commit b6da930

Please sign in to comment.