Store and retrieve offline videos and other files using phonegap


#1

Hi, i’m developing a meteor/phonegap application that needs to store files for offline view.
I get this files from a remote server using filetransfer plugin. No problem here.

For use offline images i use getFile function and get all data of images (not URL) and put it in SRC tag without problems, but i have a problem for videos… In iOS simulator folder on my mac i can see file video saved correctly in data folder of device, but i cannot get it using the same function for images because html5 video tag cannot support this format but need file URL.

Passing file://video.mp4 doesn’t work i have a security error… how i can access to my stored files using URL for offline view?

Thankyou