This question is locked. New answers and comments are not allowed.
So I have a function something like this:
_getVideoFromLibrary: function() {
var that= this;
navigator.camera.getPicture(
function(){ that._onPhotoURISuccess.apply(that,arguments); },
function(){ that._onLibraryFail.apply(that,arguments); }
,{
quality: 50,
destinationType: that._destinationType.FILE_URI,
sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY,
mediaType: Camera.MediaType.VIDEO
});
},
_onPhotoURISuccess: function(imageURI) {
var that = this;
console.log(imageURI);
etc etc etc ...
},
It grabs a video from the library of saved videos and outputs the path in the console. On iOS it works great, I get correct path, I can then upload it, whatever. On android I get something like "content://media/external/video/media/213".
What am I supposed to do with this information? It's not a path to anything usable that I can see.
_getVideoFromLibrary: function() {
var that= this;
navigator.camera.getPicture(
function(){ that._onPhotoURISuccess.apply(that,arguments); },
function(){ that._onLibraryFail.apply(that,arguments); }
,{
quality: 50,
destinationType: that._destinationType.FILE_URI,
sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY,
mediaType: Camera.MediaType.VIDEO
});
},
_onPhotoURISuccess: function(imageURI) {
var that = this;
console.log(imageURI);
etc etc etc ...
},
It grabs a video from the library of saved videos and outputs the path in the console. On iOS it works great, I get correct path, I can then upload it, whatever. On android I get something like "content://media/external/video/media/213".
What am I supposed to do with this information? It's not a path to anything usable that I can see.