janpio closed pull request #164: CB-13774: repair broken recording and playback
functionality on Android
URL: https://github.com/apache/cordova-plugin-media/pull/164
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/src/android/AudioPlayer.java b/src/android/AudioPlayer.java
index 861421e7..40b12378 100644
--- a/src/android/AudioPlayer.java
+++ b/src/android/AudioPlayer.java
@@ -151,8 +151,8 @@ public void startRecording(String file) {
this.audioFile = file;
this.recorder = new MediaRecorder();
this.recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
-
this.recorder.setOutputFormat(MediaRecorder.OutputFormat.AAC_ADTS); // RAW_AMR);
- this.recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AAC);
//AMR_NB);
+ this.recorder.setOutputFormat(MediaRecorder.OutputFormat.DEFAULT);
+ this.recorder.setAudioEncoder(MediaRecorder.AudioEncoder.DEFAULT);
this.tempFile = generateTempFile();
this.recorder.setOutputFile(this.tempFile);
try {
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]