iphone - Phonegap: get the filesize of captured audio file -


i using phonegap build iphone application. recorded file using following code.

navigator.device.capture.captureaudio( capturesuccess, captureerror );

how can file size of captured audio file?

the capturesuccess method of navigator.device.capture.captureaudio( capturesuccess, captureerror ) called array of mediafile objects has size parameter.

function capturesuccess(audiofiles) {     var i, len;     (i = 0, len = audiofiles.length; < len; += 1) {         console.log("name = " + audiofiles[i].name);         console.log("path = " + audiofiles[i].fullpath);         console.log("type = " + audiofiles[i].type);         console.log("size = " + audiofiles[i].size);     } } 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -