In one of our video processing applications, we wanted to display the video files on ignitions perspective video component. There are options to specify the URL & Local web resources path.
The video file will be fetched from NAS storage by Ignition gateway. Then we wanted to display this processed video on the Ignition perspective screen.
Has any of you encountered a similar scenario? Can you help us?
In order for a Perspective session to display the video, it must be served up via HTTP by a webserver somewhere. It’s possible your NAS has this built-in, but if the NAS is only acting as a filesystem, then you need a webserver to serve those files up.
You can also serve the video up with VLC media player. Your VLC command can play the video start to finish or in a loop. If you play start to finish, you will need to end the task other wise it will just create another instance of VLC and consume more memory.
This is an example of the .bat file I used to stream an .AVI video file on the gateway to port 9911. You could pass parameters to it when executing from ignition, if say you want to select different videos, or stream on different ports.
The example i posted, assuming you run it on the gateway, will stream to http://127.0.0.1:9911, you can use the gateway’s ip address or DSN.
The process will probably be slightly different based on what exactly you are trying to do. You can execute the .bat file on a button click, which will start VLC and begin playing your video. You can have your video source statically set to http://127.0.0.1:9911 or you could set it dynamically if for example there are multiple videos to choose from that you want to play in the video player.