Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference Between Media Plugin and Media Capture Plugin

I want to record audio from user using cordova. On research I found two plugins which seems to do the job. First media plugin and other media capture plugin. Now my question is can I record audio from both plugin or the media plugin is only for recording from existing audio file? If I can do recording from both which one should I use?

like image 920
Neeraj Avatar asked May 16 '26 05:05

Neeraj


1 Answers

The function media.startRecord from the media plugin allows to record audio from within your application whereas the function capture.captureAudio from media capture plugin will start the default audio capture app of your device and let you access the recorded data once you exit that app.

So with media plugin the user will stay in your UI and with media capture plugin the user will switch from your app to a capture app and back to your app.

like image 161
QuickFix Avatar answered May 18 '26 15:05

QuickFix



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!