Skip to content

Commit

Permalink
fixed a bug where the user could try recording even though the mic is…
Browse files Browse the repository at this point in the history
… being used. also added support for ios 14
  • Loading branch information
tchvu3 committed Sep 27, 2020
1 parent 82aeabd commit 7f4971f
Show file tree
Hide file tree
Showing 802 changed files with 2,685 additions and 876,678 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ npm install --save capacitor-voice-recorder
the promise will reject with the message "MISSING_PERMISSION".
if the phone is unable to record then the promise will reject
with the message "CANNOT_VOICE_RECORD_ON_THIS_PHONE".
if there's a recording already running then the promise will reject with "ALREADY_RECORDING"
if there's a recording already running then the promise will reject with "ALREADY_RECORDING",
and if the microphone is being used by other app then the promise will reject with "MICROPHONE_BEING_USED".
NOTE: in case of unknown error the promise will reject with "FAILED_TO_RECORD"
---
* stopRecording - will stop the recording that previously started. if the function startRecording()
Expand Down Expand Up @@ -69,7 +70,7 @@ VoiceRecorder.hasAudioRecordingPermission.then((result: GenericResponse) => cons
/**
* In case of success the promise will resolve with {"value": true}
* in case of an error the promise will reject with one of the following messages:
* "MISSING_PERMISSION", "ALREADY_RECORDING", "CANNOT_RECORD_ON_THIS_PHONE" or "FAILED_TO_RECORD"
* "MISSING_PERMISSION", "ALREADY_RECORDING", "CANNOT_RECORD_ON_THIS_PHONE", "MICROPHONE_BEING_USED" or "FAILED_TO_RECORD"
*/
VoiceRecorder.startRecording()
.then((result: GenericResponse) => console.log(result.value))
Expand Down
Binary file modified android/.gradle/4.10.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified android/.gradle/4.10.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified android/.idea/caches/build_file_checksums.ser
Binary file not shown.
13 changes: 9 additions & 4 deletions android/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions android/.idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions android/.idea/libraries/Gradle__androidx_core_core_1_2_0_aar.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7f4971f

Please sign in to comment.