Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
None
-
None
-
None
-
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 1.3.1-nightly-3792
Ionic CLI Version: 1.7.16
Ionic App Lib Version: 0.7.3
ios-deploy version: 1.8.2
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v5.0.0
Xcode version: Xcode 7.3.1 Build version 7D1014Cordova CLI: 6.1.1 Gulp version: CLI version 3.9.1 Gulp local: Ionic Framework Version: 1.3.1-nightly-3792 Ionic CLI Version: 1.7.16 Ionic App Lib Version: 0.7.3 ios-deploy version: 1.8.2 ios-sim version: 5.0.8 OS: Mac OS X El Capitan Node Version: v5.0.0 Xcode version: Xcode 7.3.1 Build version 7D1014
Description
I'm using https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-media-capture/ and on iOS v. 9.2+ it won't allow me to upload recordings greater than 2 seconds. The same code works for Android and can capture audio for more than 2 seconds. I'm using a file reader to get the base64 string of the whole recording and uploading it to a server.
var audioFile = audioFiles[0],
fileReader = new FileReader(),
file;
fileReader.onload = function (readerEvt)
;
file = new window.File(audioFile.name, audioFile.localURL,
audioFile.type, audioFile.lastModifiedDate, audioFile.size);
fileReader.readAsDataURL(file);