Hi!
I’m trying to use the MediaPlugin, but when I try to use the method getCurrentAmplitude() it always says this error
TypeError: Cannot read property ‘apply’ of undefined
If i remove the method, the audio is recorded perfectly, so the mistake is in this method.
I tried different things like
console.log(this.media.getCurrentAmplitude()) but returns a promise, so I’m using this now.
this.media.getCurrentAmplitude().then((amp) => {
console.log(amp);
});
but the result its the same in both cases, the error I said before.
Any clue about what is causing this error?
Thank you!