Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

remove func

roryclear71070758c026
diff --git a/mainview.html b/mainview.html
index 95a140a..1215362 100644
--- a/mainview.html
+++ b/mainview.html
@@ -2687,19 +2687,6 @@
});
}
- function updateCameraStream(cameraName, showDetections) {
- const streamInfo = activeVideoStreams.get(cameraName);
- if (!streamInfo) return;
-
- const streamSuffix = showDetections ? "_det" : "";
- const newStreamUrl = `${window.location.origin}/${encodeURIComponent(cameraName)}${streamSuffix}/streams/${currentStreamDate}/stream.m3u8`;
- if (streamInfo.streamUrl !== newStreamUrl) {
- console.log(`Updating stream for ${cameraName} to ${showDetections ? 'with' : 'without'} detections`);
- cleanupCameraStream(cameraName);
- setTimeout(() => startCameraStream(cameraName), 100);
- }
- }
-
function stopDetectionHeartbeat(cameraName) {
const interval = detectionIntervals.get(cameraName);
if (interval) {