Originally Posted by
Jodelman
Thanks for that. Your code is much better and more succinct and the picture appears on xara program but when I publish no picture appears on the website. With your code there is a border edging where the picture should be which there wasn't with my code. It's as if it is hidden in some way and if only I could bring it to the foreground all would be okay but I tried >arrange>bring to front with no effect.
I didn't bother with hiding the border. The code could instead be:
Code:
<iframe src="http://80.229.175.33:8009/snapshot.cgi?user=operator&pwd=operator" [COLOR=var(--highlight-color)][COLOR=var(--highlight-attribute)]style[/COLOR]=[COLOR=var(--highlight-variable)]"width: 100%; height: 100%; border: 0"[/COLOR]>[/COLOR]</iframe>
However, your problem is your browser is blocking access to insecure content:
Mixed Content: The page at 'https://curvy-sloth-89.loca.lt/Webcam/index.htm' was loaded over HTTPS, but requested an insecure frame 'http://80.229.175.33:8009/snapshot.cgi?user=operator&pwd=operator'. This request has been blocked; the content must be served over HTTPS.
Instead of an IFRAME, I have just tried a background image:
Code:
<div style="width: 100%; height: 100%; background-image: url(http://80.229.175.33:8009/snapshot.cgi?user=operator&pwd=operator);"></div>
This only now gives a Warning rather than blocking the snapshot. Consider this a temporary fix as browsers are tightening security all the time.
The reason why it is blocked is here: https://web.dev/fixing-mixed-content/.
Your webcam needs to be made secure.
Ultimately you may have to follow an approach I suggested by using an application that published to a secure Cloud location.
Acorn
Bookmarks