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

Camera full example has invalid JSON for Camera options object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.6.0
    • 1.6.1
    • None
    • None

    Description

      The top-most full example has the following code:

          function capturePhoto() {
            // Take picture using device camera and retrieve image as base64-encoded string
            navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 50,
              destinationType.DATA_URL });
          }
      
          // A button will call this function
          //
          function capturePhotoEdit() {
            // Take picture using device camera, allow edit, and retrieve image as base64-encoded string  
            navigator.camera.getPicture(onPhotoDataSuccess, onFail, { quality: 20, allowEdit: true,
              destinationType.DATA_URL });
          }
      

      Note how the Camera options object is not valid JSON.

      Attachments

        Activity

          People

            mwbrooks Michael William Brooks
            filmaj Filip Maj
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: