Open AllenMcAfee opened 7 years ago
Remove this snippet. We expected more lag due to the video feed, but people want to see the camera regardless.
Starting on line 33 in robotheme.js
/* Modified from OctoPrint
which custom controls are created by plugins */ self.oldProcess = self.control._processControl; self.control._processControl = function (control) { self.oldProcess(control); control.plugin_control = control.hasOwnProperty("plugin_control") ? ko.observable(true) : ko.observable(false); return control; };
self.control._enableWebcam = function() { if (self.control.webcamDisableTimeout != undefined) { clearTimeout(self.control.webcamDisableTimeout); } var webcamImage = $("#webcam_image"); var currentSrc = webcamImage.attr("src"); if (currentSrc === undefined || currentSrc.trim() == "") { var newSrc = CONFIG_WEBCAM_STREAM; if (CONFIG_WEBCAM_STREAM.lastIndexOf("?") > -1) { newSrc += "&"; } else { newSrc += "?"; } newSrc += new Date().getTime();
self.control.updateRotatorWidth(); webcamImage.attr("src", newSrc);
} };
reverted this commit in 0.2.3. will get pushed in future release
Remove this snippet. We expected more lag due to the video feed, but people want to see the camera regardless.
Starting on line 33 in robotheme.js
/* Modified from OctoPrint
which custom controls are created by plugins */ self.oldProcess = self.control._processControl; self.control._processControl = function (control) { self.oldProcess(control); control.plugin_control = control.hasOwnProperty("plugin_control") ? ko.observable(true) : ko.observable(false); return control; };
self.control._enableWebcam = function() { if (self.control.webcamDisableTimeout != undefined) { clearTimeout(self.control.webcamDisableTimeout); } var webcamImage = $("#webcam_image"); var currentSrc = webcamImage.attr("src"); if (currentSrc === undefined || currentSrc.trim() == "") { var newSrc = CONFIG_WEBCAM_STREAM; if (CONFIG_WEBCAM_STREAM.lastIndexOf("?") > -1) { newSrc += "&"; } else { newSrc += "?"; } newSrc += new Date().getTime();
} };