I'm successfully capturing a video stream with the below code:
navigator.device.capture.captureVideo(
//...after recorded vid
function(mediaFiles) {
var i, path, len;
for (i = 0, len = mediaFiles.length; i < len; i += 1) {
path = mediaFiles[i].fullPath;
app.f7.alert(path);
}
},
//...couldn't get camera
function() { app.f7.alert('Sorry - your recording device could not be accessed', 'Error'); },
//...config
{limit:2}
);
What I can't figure out is how to grab the blob data of the saved video. I have the filepath to the locally-saved file, but I need to save the data out to a remote server so I need its data.
The success callback is passed a MediaFile
object encapsulating the captured video, but the docs don't discuss any means of getting its raw data. Anyone know how this can be achieved?