As info, many ESP32CAM firmwares are limited by being able to stream to a single client only. i.e. If you are testing and watching the stream in your browser, then other clients connecting to the camera will possibly be unable to get the stream. Just throwing it out there, in case this limitation might be affecting you.
Then the issue is confirmed - it's a browser security feature that blocks accessing local IP addresses from what it perceives as 'public' sites. It can't tell if octopi.local is private or public. You can only access the camera with a local IP if OctoPrint is accessed from a local IP. Hope that's clear enough...
I also tested that there is a stream on http://192.168.1.188:8080 through the MJPG integration of home assistant, and i can see the video from it.
What could be wrong? The espcam is streaming into an home assistan dashboard, throuh the esphome integration.
I read My ESP32 Cam is not working as a webcam - #4 by MegaHurtz but it should not matter as long as i don't have a browser open on that page, right? Also, i even tried to remove the card showing the camera stream but nothing changed
( I would have embedded other images but i can only have one as new user )
I noticed that when i went home it started to work, both from octoprint web and octopod app.. also integrated octoprint in cura and i'm able to see the stream simultaneously with home assistant.
I thought it was suddenly fixed but now that i'm outside of my network i noticed that nothing works again on "octoprint" side: the camera is up, i can see it from home assistant, but both octoprint web and octopod are not, like before.
I guess it's some kind of security thing? I tried to open octoprint from different browser.. maybe it's also due to the fact that my octoprint is exposed to the outside word through a port-forwarding on my router?
Oooh okay. I thought that as long as the video was available into octoprint, that is then available to the internet, this would have worked.
So i guess octoprint camera is just a view into that ip camera, it's not taking the video and then streaming it again itself (makes sense)
My solution was to exclude the home assistant api:
# api:
# encryption:
# key: "adfafadsf..."
so only include the webserver component.
You just use esphome to host a webserver.
My feeling it that the link to homeassitant take priority or something?
using