yes several possible philosophy.
use the same server as myC to install a video surveillance application, and encapsulate it inside.
or externally, for example an ESP32-CAM https://www.sigmdel.ca/michel/ha/esp8266/ESP32-CAM_01_fr.html
my idea of WebCam at the beginning it was a simple rear view mirror 🙂
to have a view on my doorway, the door rings (arduino) and the webcam turns on in myC .
a possible choice of video surveillance