Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11603

captureAudio on iOS 9.2+ can't record more than 2 seconds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • None

    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)

      { var base64 = readerEvt.target.result; saveRecording(base64); }

      ;
      file = new window.File(audioFile.name, audioFile.localURL,
      audioFile.type, audioFile.lastModifiedDate, audioFile.size);
      fileReader.readAsDataURL(file);

      Attachments

        Activity

          People

            Unassigned Unassigned
            yoda_webjunto James Manlapid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: