I’m trying to build out a view where a user can upload files, see them in a table, click on them in a table and get a preview of the media they uploaded (image, video, etc). As the title says, I’m trying to set the source of the Perspective Video Player component to a video located on a server that isn’t the Ignition Gateway.
Here is what I did: I logged into the Ignition gateway, opened the Designer on the gateway, and created a new Mounted Folder inside the WebDev module. I clicked Browse, browsed to a folder that is mapped (from another server), accepted the default name, and clicked OK. This resulted in a path like
Y:/TestFolder. I went back to my local dev machine, opened the same project and copied the Mounted Path in the newly created Mounted Folder; something like
I thought I was good to go from this point. I put in
/system/webdev/<project_name>/<webdev_resource_name>/sample.mp4 into the Video Player source and saved, but when I went to view it in the session, I got a “Error loading media: File not valid” error message and a
GET ... 404 (Not Found) message in the browser console.
I thought it might’ve been folder or file permissions, but I ruled that out of the equation at this point.
I was able to get a Video Player to play files that were hosted on the Ignition gateway server through WebDev, but I don’t want to store image/video media on the Gateway, for obvious reasons.
What am I doing wrong?