mikedmor / OctoPrint_MultiCam

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

Snapshot url get's lost while switched to cam2 and restarting octoprint #38

Closed hawkeyexp closed 1 year ago

hawkeyexp commented 3 years ago

Current setup:

1x RPi cam module 1x USB mini module (8x8mm) as nozzle cam

RPi cam module is configureed as default webcam, usb cam as second via multicam.

If cam is switched to 2nd cam (usb) and octoprint is restarted, the default cam is the usb url and the snepshot url is blank and lost.

I think it needs a change inside the plugin like this:

1) default cam url and default snapshot url is configurable (optional import from octoprint defaults) and permanently stored inside the plugin. 2) optional cams can be setup like currently released. 3) During octoprint start the default webcam is set by the plugins default cam and snapshot url

This should prevent from loosing the snapshort url etc,