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

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

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      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

            • Assignee:
              Unassigned
              Reporter:
              yoda_webjunto James Manlapid

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment