mikedmor / OctoPrint_MultiCam

Extends the Control tab of OctoPrint, allowing the ability to switch between multiple webcam feeds.
45 stars 19 forks source link

OctoPrint_Multicam sending both cameras to everything but OctoPrint! #52

Closed marioPS closed 1 year ago

marioPS commented 1 year ago

G'day. Have 2 cameras (it seems to be a prerequisite for this plugin):

A USB camera shared by Cam2Web on Win10 (https://github.com/cvsandbox/cam2web):
 http://192.168.0.xx1:Port1/camera/mjpeg http://192.168.0.xx1:Port1/camera/jpeg

And a D-Link DCS-931L with mjpeg & jpeg streamed by the device here: http://username:password@192.168.0.xx2:Port2/video/mjpg.cgihttp://username:password@192.168.0.xx2:Port2/image/jpeg.cgi

Apple HomeKit can see both cameras (via Homebridge Camera FFmpeg Plugin > Homebridge > Homekit) - this is independent of OctoPrint_Multicam . I just wanted to brag.

OctoPod for iOS/iPadOS/TVOS can see both cameras.
 Ultimaker Cura via Octoprint Connection extension can see both cameras.

It appears OctoPrint_Multicam is sending the streams OK, just not to the Octoprint host (?) Clicking on the camera name buttons does not switch views - always stuck on #1 (the USB/Win10) 
 
It seems so close!

mikedmor commented 1 year ago

Hey MarioPS. This plugin utilized the html block that was built into Octoprint. I'm not entirely sure on the capabilities of that being able to load a .cgi page and dont necessarily have a way to test that on my end.

However doing a lookup on your D-Link camera some resources suggest you should also be able to access it via the following URL: http://username:password@192.168.0.xx2:Port2/image.jpg

I recommend seeing if you are able to get jpg image feed from that webcam and using that instead. That should fix the issue you are experiencing. Good Luck!