Doug Moscrop created CB-7075:
--------------------------------

             Summary: BlackBerry10 filesystem URIs are inconsistent and hacky
                 Key: CB-7075
                 URL: https://issues.apache.org/jira/browse/CB-7075
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin File, Plugin File Transfer, Plugin Media, Plugin 
Media Capture
    Affects Versions: 3.5.0
         Environment: Windows 8.1, BlackBerry10
            Reporter: Doug Moscrop


(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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to