volgens Cássio Queiroz.
Thank you very much Daniel for your answer!I've tried to apply the transcode function where you pointed me to, but now i am stuck with this problem.
The transcode function requires a path to the file but, the only path i got (at least in the uploadAudioOrVideo Function) has the protocol cdvfile which is incompatible with the transcode.
So i followed how the functions works with that path and came across this block:
- promise = $mmFS.getExternalFile(path).then(function(fileEntry) {
- return $mmFS.getFileObjectFromFileEntry(fileEntry).then(function(file) {
- if (file.size > maxSize) {
- fileTooLarge = file;
- }
- });
- }).catch(function() {
- });
Unfortunately when i try to use these functions i got the error "entry.file is not a function".
Any ideas on how i should proceed ?
Thank you very much,
Cássio