CodePen

HTML

            
              
            
          
!
via HTML Inspector

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              function onOK_GetFile(fileEntry) {
    ... ... 
	else { // record on iOS
		// create media object using full media file name 
		my_audio = new Media(mediaRecFile, onMediaCallSuccess, onMediaCallError);

		// specific for iOS device: recording start here in call-back function
		recordNow();
	}
}

function onSuccessFileSystem(fileSystem) {
	console.log("***test: fileSystem.root.name: " + fileSystem.root.name);
    ... ... 
    	fileSystem.root.getFile(mediaRecFile, { create: true, exclusive: false }, onOK_GetFile, null);
    
}

function startRecording() {
    ... ... 
    else if (phoneCheck.ios) {
    	//first create the file
    	checkFileOnly = false;
    	window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, onSuccessFileSystem, function() {
    		console.log("***test: failed in creating media file in requestFileSystem");
    	});
    	console.log("***test: new Media() for ios***");
    }
}

            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................