As the title says, I'm looking for (i don't know if it exists) a command line switch, when passed to start chrome browser allows me to read the full path for the element.
I did some reading and it looks like it is not possible in a regular browser environment because of the security concerns.
Why do I need it?
I'm developing a html/js app that will run in a CEF (chromium embedded framework). So knowing the full path of files is not really a security concern. My app has a video tag. I'm generating a file url using:
urls[urlIndex] = webkitURL.createObjectURL(file);
and feeding it to the video tag to play the video like this:
videoHandle.attr("src", urls[index -1]).get(0).play();
It plays well in the chrome browser but when I play in the CEF, it is throwing a
cefclient[1121] <Error>: clip: empty path.
I'm suspecting the CEF is unable to understand the url format generated by the createObjectURL.
blob:file%3A///1bd8d246-9bd4-464d-bb77-412ea877f952
So, I'm trying to feed an absolute path to the video element because that is working fine in the CEF. Hence I need the absolute path of the file. Some thing like this.
videoHandle.attr("src", "file:///C:/movies/test.mp4").get(0).play();
I hope it makes sense. I appreciate any pointers in the regard.