I am facing an issue with recording audio in my Ionic 4 app using the media-capture Cordova plugin. Whenever I press the record button, it launches an external recorder app to capture the audio, which I can then play within my app. However, I want to be able to record the audio directly within my app without relying on an external tool. Can anyone guide me on how to achieve this?
Below is the code snippet from my home.page.html file:
<ion-header>
<ion-toolbar>
<ion-title>
Audio Testing App
</ion-title>
</ion-toolbar>
</ion-header>
... (omitted for brevity)
In my home.page.ts file:
(Javascript and TypeScript code here)
Screenshots of the app: Image 1: Home Page
https://i.sstatic.net/PBjDh.jpg
Image 2: External Recorder - Opens when clicking the record button
(Would like to avoid this step and record audio directly inside the app)