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

BlackBerry10 filesystem URIs are inconsistent and hacky

    XMLWordPrintableJSON

    Details

      Description

      (sorry for the Component/s spam but it's the pieces involved)

      1. Record an audio clip using media-capture
      2. Play the audio clip using the media
      3. Upload the audio clip using file-transfer

      The URI returned from the audio part of media capture is "bare", i.e. this is the fullPath:

      /accounts/1000/shared/voice/VN-20140704-020436.m4a

      If I want to play that audio using "new Media" I have to prefix that URI with "file://" otherwise it gives me a cryptic *encoding* error!

      However, if I try to use file-transfer using either the bare URI or the hacked prefixed URI it fails! To make that work I have to instead separately prefix the bare URI with cdvfile://localhost/root (not persisent!) and then it works.

      A note, to make matters more complicated, using navigator.camera.capture (not media-capture) for a photo, returns a URI that looks like:

      file:///accounts/1000/shared/camera/IMG_20140704_020404.jpg

      In other words, it's the same as the bare URI + prefix that I mentioned above except... file-transfer works fine with that URL! I don't even.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dmoscrop Doug Moscrop
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: