cordova media plugin. continue recording of existing

201 Views Asked by At

background

I have an app which has build in voice recorder using cordova-media-plugin. Nominally I can record and save a file.

problem

When I am recording and I close app (without instance.stopRecord()) then file created, record but not saving correct. I can open it but i can't play it.

Does anybody know how to resolve this issue?

1

There are 1 best solutions below

0
Александр Набережнев On BEST ANSWER

The problem was inside cordova media plugin. I just added cordova onWillTerminate event to the CDVSound.m and just stop recording when event fired.

**If somebody have the same problem here is the link on my patch - ** Patch Link

P.S. - I'm not ios developer. And yes i know that possible to do it more clean. Thanks guys for help.