How to I change Video source?

image
Hi BnR, I would like to create a simple program to read any .mp4 video files placed into “Folder A”. The issue I am currently facing is I can’t change the source of the video to go outside of the “mappView/Resources” folder.

Is there any particular solution to this?
Thanks for your help.

Would be great if there is a sample coding of how to change the video source too.

Hey Noah,

check out this help entry:

Zugriff auf externe Ressourcen über File Devices
260f42a3-62ea-412c-b6a3-4515a5611080

So you should be able to use any FileDevice you created on the PLC.

If the URL path begins with the keyword /FileDevice:, then the contents will be read from the specified file device.

And in order to change it during runtime, you’ll have to create a binding for the src property. I guess you know it, but in the screenshot it’s not connected :slight_smile:

Best regards,
Marcel