Skip to content

Commit 684e0f7

Browse files
committed
Fix [BUG] Webcam Streaming Failed notification even when Webcam Streaming disabled #239
1 parent 12d5fee commit 684e0f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

octoprint_obico/webcam_stream.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ def __init__(self, plugin):
202202

203203
def start(self, webcam_configs):
204204

205+
if self.plugin._settings.get(["disable_video_streaming"]):
206+
_logger.info('Video streaming is disabled. Skipping webcam streaming.')
207+
return (webcam_configs, None)
208+
205209
janus_server = '127.0.0.1'
206210

207211
preconfigured = self.preconfigured_webcams()

0 commit comments

Comments
 (0)