1
我已經做了很多尋找,並且它看起來像代碼是正確的。我沒有任何線索從哪裏去。它只是不記錄任何在iPhone上不記錄音頻
if(device.platform == "iPhone")
{
myFileRecord = "myrecording.wav";myMime="audio/x-wav";
document.addEventListener("deviceready", function onDeviceReady() {
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS1, function fail1(){});
}, false);
var gotFS1 = function (fileSystem) {
fileSystem.root.getFile("myrecording.wav",
{ create: true, exclusive: false }, //create if it does not exist
function success(entry) {
var src = entry.toURI();
console.log(src); //logs blank.wav's path starting with file://
},
function fail1() {}
);
};
}
recordAudio();
}