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

MediaFile.getFormatData does not work with localURL; changed with fullPath

    XMLWordPrintableJSON

Details

    Description

      MediaFile.getFormatData result data was empty (filled with default "0" values) for all types of capture: image, video & audio.

      Problem encountered on Android & iOS.

      I solved this by changing the url passed to native code from localURL to fullPath.

      Tested with two different Android phones (5.1 & 4.4) & one iPhone 5 (iOS 9).
      The fix works!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              TanaseButcaru Tanase Butcaru
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: