Is it possible to view a camera feed in webVisu? I have my camera connected to a CrossControl display, and I am using functions from CrossControl's library to display the camera feed in the display. To do this, in my Codesys application, when I switch to the camera, I have to switch to a visualization with nothing in it, then show the camera feed there. However, when I tried that with webVisu, it only shows that blank screen, not the video feed overlapped on top.
There might be a CrossControl specific solution to get the directly connected camera working, but I just use an IP Camera with http(s) access, and the WebBrowser component.
I just tried the webBrowser with an internet website (google.com) first just to test out the webBrowser element, but it seems like my PLC just shows a blank screen when I switch to the webBrowser element. I attached some images. As you can see, in the Codesys IDE, my webBrowser is in the "cameraViz", and is supposed to go to the URL www.google.com. However, when I download and log in to the PLC display, the Codesys IDE logged in displays the website okay, but the PLC just shows a white screen. Do you know what causes this? Why is my PLC not displaying the browser URL correctly?
Also, I am not sure why my attachment "actual_display.jpg" is upside down. Sorry about that.
I'm actually calling webvisu by having my computer on the same network as the PLC display. The display is connected to my computer via an ethernet cable.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
this is only possible if the cam delivers a stream via a webserver ( not the CODESYS embeeded Webvisu webserver).
Think this need to be added by the manufacturer of the device.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
try another page than google.com for testing the webBrowser Element. I run into the same issue and figured out, that it looks like google doesn't allow opening the webpage in a frame :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Is it possible to view a camera feed in webVisu? I have my camera connected to a CrossControl display, and I am using functions from CrossControl's library to display the camera feed in the display. To do this, in my Codesys application, when I switch to the camera, I have to switch to a visualization with nothing in it, then show the camera feed there. However, when I tried that with webVisu, it only shows that blank screen, not the video feed overlapped on top.
Thanks,
Jefferson
There might be a CrossControl specific solution to get the directly connected camera working, but I just use an IP Camera with http(s) access, and the WebBrowser component.
help.codesys.com > Web Browser Tutorial
Hi, i-campbell,
I just tried the webBrowser with an internet website (google.com) first just to test out the webBrowser element, but it seems like my PLC just shows a blank screen when I switch to the webBrowser element. I attached some images. As you can see, in the Codesys IDE, my webBrowser is in the "cameraViz", and is supposed to go to the URL www.google.com. However, when I download and log in to the PLC display, the Codesys IDE logged in displays the website okay, but the PLC just shows a white screen. Do you know what causes this? Why is my PLC not displaying the browser URL correctly?
Also, I am not sure why my attachment "actual_display.jpg" is upside down. Sorry about that.
Last edit: jeffersonhui 2020-05-17
Are you calling this webvisu via CODESYS Automation Server?
I'm actually calling webvisu by having my computer on the same network as the PLC display. The display is connected to my computer via an ethernet cable.
this is only possible if the cam delivers a stream via a webserver ( not the CODESYS embeeded Webvisu webserver).
Think this need to be added by the manufacturer of the device.
try another page than google.com for testing the webBrowser Element. I run into the same issue and figured out, that it looks like google doesn't allow opening the webpage in a frame :-)
Google prevents people from including them in an iframe (see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options)
Hi, do you have a website for me to try? I tried a few different websites and got the same issue.
I tried microsoft.com, youtube.com, wikipedia.org, and codesys.com, but they all had the same issue.
Have you tried https://www.codesys.com/ ?
Could yo provide the full strings used?
Best regards,
Marcel
Hi, Marcel,
I just tried that, but unfortunately got the same issue. See screenshots.
Thanks,
Jefferson
What hardware and version are you using?
Best regards,
Marcel
Hi, Marcel,
I am using the CrossControl VC display:
https://crosscontrol.com/en-us/products/display-computers/ccpilot-vc
As for runtime, I am running their iMX5 3.5.9.30-109 runtime:
https://support.crosscontrol.com/downloads/codesys
Is this a better question to ask CrossControl instead?
Thanks,
Jefferson
Hello @Jefferson,
I would recommend you ask them.
It could be that there some libs not available on this hardware used to display a browser.
Sorry for the long hunt :(
Best regards,
Marcel