From 2596a99a2497e53e3f73399941bda7822bb1ef6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 13 Apr 2023 13:52:21 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20"webcam=20stream=20not=20l?= =?UTF-8?q?oaded"=20display?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When we don't have a stream URL configured, we need to fall back to mjpg stream type to make this show up. --- src/octoprint/plugins/classicwebcam/static/js/classicwebcam.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/octoprint/plugins/classicwebcam/static/js/classicwebcam.js b/src/octoprint/plugins/classicwebcam/static/js/classicwebcam.js index 70d610fcf..1ebc37843 100644 --- a/src/octoprint/plugins/classicwebcam/static/js/classicwebcam.js +++ b/src/octoprint/plugins/classicwebcam/static/js/classicwebcam.js @@ -44,7 +44,8 @@ $(function () { return self.determineWebcamStreamType(self.streamUrlEscaped()); } catch (e) { console.error(e); - return "test"; + self.webcamError(true); + return "mjpg"; } });