Audio capture 3.0 without interface

I received an audio recording to work in Phonegap 3.0, however, depending on the platform, it launches its own interface, which makes recording easier.

Is there a way to not show the interface, but use the user interface?

0
cordova phonegap-plugins
source share
1 answer

Answer:

Instead of using the capture API, use the media api.

function recordAudio() { var src = "myrecording.mp3"; var mediaRec = new Media(src, // success callback function() { console.log("recordAudio():Audio Success"); }, // error callback function(err) { console.log("recordAudio():Audio Error: "+ err.code); }); // Record audio mediaRec.startRecord(); } 
0
source share

All Articles