Hi, i’m new on Ionic/Cordova. I’m with Ionic 2. I want to test the recording feature accessing the device microphone, but i don’t understand this:
var file = new MediaPlugin(‘path/to/file.mp3’);
If I have to record my voice with microphone, i expect the app create a new audio file (.wav, . mp3 or what else). I don’t understand if file.mp3 is an already created file, and how i have to set the path? When i’m on a real device, where my record audio file is saved? is iOS/Android different (so i have to write 2 different code/path)?
Someone can show me a very simple working example? thanks