Is it possible to view a camera RTSP feed in a visualization? It seems as though the browser element doesn't support this and we are trying to replicate an example using the ActivX element with no luck. We are using the Windows Control Win x64 device with a camera connected via LAN.
If it is possible, can you provide some instructions please.
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi dgrard, I had the same issue for a long time, but on a WAGO webvisu.
Now I'm glad that I can share my solution.
I don't know if you are trying to use the webvisu or the target visu, but this works on webvisu:
Get "go2rtc" and set it up according to the documentation. I'm running the Windows binary.
Here's my example of the go2rtc.yaml config file (contains working example streams):
Access the webinterface of go2rtc and get the link of your stream.
Use the link as for your browser frame in the visualization.
Depending on your device, you need to be able to access the file /etc/lighttpd/lighttpd.conf or /etc/lighttpd/webvisu.conf and change the contents similar to this one, otherwise you'll get CORS and CSP errors in the browser and you won't be able to view the stream on the webvisu:
# Webvisu specific settings$SERVER["socket"]=~port_webvisu_used_any{url.redirect+=("^/webvisu/?$"=>"/webvisu/webvisu.htm")$HTTP["url"]=~"^/webvisu/?"{var.response_header_policy_webvisu=(# CSP for WebVisu, allowing inline sources."Content-Security-Policy"=>"default-src 'self' 'unsafe-inline'; media-src *; frame-src *",# CORS for WebVisu, allowing any origin to access."Access-Control-Allow-Origin"=>"*",# Tell older browsers that this page can only be displayed if all ancestor# frames are same origin to the page itself."X-Frame-Options"=>"SAMEORIGIN")# Response header policy for WebVisusetenv.set-response-header=var.response_header_policy_webvisusetenv.set-response-header+=var.response_header_policy_common}
π
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can you provide some infos on what you did?
What model is your camera and which protocols does it support? Is there a direct link to the feed? Does your camera prevent embedding of the feed (this was my issue.)?
I had to use additional software (go2rtc) to be able to stream the feed from an ABUS TVIP48511...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I followed your guidance and used go2rtc. There is a link generated from go2rtc I can copy into the web browser element in the visualisation. It somehow only appear within the software when it is running, but not on the webvisu. I want to display the camera feed onto the webvisu.
My camera is reolink 810a which supports IP protocol.
My project is pretty simple, just a web browser element with assigned URL.
Last edit: jinlee 2024-09-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
Is it possible to view a camera RTSP feed in a visualization? It seems as though the browser element doesn't support this and we are trying to replicate an example using the ActivX element with no luck. We are using the Windows Control Win x64 device with a camera connected via LAN.
If it is possible, can you provide some instructions please.
Thank you
Hi dgrard, I had the same issue for a long time, but on a WAGO webvisu.
Now I'm glad that I can share my solution.
I don't know if you are trying to use the webvisu or the target visu, but this works on webvisu:
Get "go2rtc" and set it up according to the documentation. I'm running the Windows binary.
Here's my example of the go2rtc.yaml config file (contains working example streams):
Access the webinterface of go2rtc and get the link of your stream.
Use the link as for your browser frame in the visualization.
Depending on your device, you need to be able to access the file /etc/lighttpd/lighttpd.conf or /etc/lighttpd/webvisu.conf and change the contents similar to this one, otherwise you'll get CORS and CSP errors in the browser and you won't be able to view the stream on the webvisu:
Hi,
I can see the camera feed in the Codesys software, but not on the webvisu browser.
Kind regards,
Jin.
Can you provide some infos on what you did?
What model is your camera and which protocols does it support? Is there a direct link to the feed? Does your camera prevent embedding of the feed (this was my issue.)?
I had to use additional software (go2rtc) to be able to stream the feed from an ABUS TVIP48511...
Hi,
I followed your guidance and used go2rtc. There is a link generated from go2rtc I can copy into the web browser element in the visualisation. It somehow only appear within the software when it is running, but not on the webvisu. I want to display the camera feed onto the webvisu.
My camera is reolink 810a which supports IP protocol.
My project is pretty simple, just a web browser element with assigned URL.
Last edit: jinlee 2024-09-17