I’m getting really frustrated with this… I’m trying to feed a file to Video Editor plugin which was picked from the local storage with Camera plugin, but the path is not recognized and getting error “File Protocol error”
In more details:
I chose Camera plugin with configuration to pick Video (only) files from my local device.
The Camera plugin spits out a video file path from library like
Now when I feed this URL to Video Editor’s
.getVideoInfo() member method I get an error “malformedURLException: Protocol not found”.
On the same page I use Media Capture plugin to record a video that then is feeded to Video Editor plugin to transcode it and modify it. This works perfectly.
I see that Media Capture plugin spits out a URL path like
So obviously this URL is fine for Video Editor.
And I don’t know what kind of hell I’m going to get into when trying on iOS.
Question 1: Do you think I’m using the correct approach here (Camera plugin) to pick a video file from local storage?
Question 2: Is there a way to convert the “/storage/…” path to “file:///…” path?
Any help or guidance is highly appreciated.