Plugin - Media with compression (TypeError: window.Media is not a constructor)


I’m using this plugin

It worked for a while, using “declare variable window: any” and “declare variable Media: any”;
And then start the record with window.Media(path…).

But now when I try to record the audio, it says: TypeError: window.Media is not a constructor

I think it is because of the new ionic-native version or something, but I don’t know how to solve this problem.

Is there now any other way to use the non native plugins??