|
function fnStartRecord() {
var mp3Recorder = api.require('recordForMP3');
mp3Recorder.startRecord({
savePath: "fs://test.mp3"
}, function (ret, err) {
alert("ret: " + JSON.stringify(ret) + "err: " + JSON.stringify(err));
});
}
function fnStopRecord() {
var mp3Recorder = api.require('recordForMP3');
mp3Recorder.stopRecord(function (ret) {
alert(JSON.stringify(ret));
});
}
|
|