src.nth.io/

summaryrefslogtreecommitdiff
path: root/scrypted
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-06-21 13:14:15 -0500
committerLuke Hoersten <[email protected]>2026-06-21 13:14:15 -0500
commitc9019841db828f63a24ff1a65fa8c999851dcf66 (patch)
tree1363a74a0f2b3cbd77f0b9c9563e44ac9bb8de3b /scrypted
parent844363e067eaebceae12bc520a917c1733d6cd61 (diff)
scrypted: log every onBindingChanged re-attach with host/cameraId
Diffstat (limited to 'scrypted')
-rw-r--r--scrypted/scrypted-viewport.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/scrypted/scrypted-viewport.ts b/scrypted/scrypted-viewport.ts
index 4bd5fe4..846c8e3 100644
--- a/scrypted/scrypted-viewport.ts
+++ b/scrypted/scrypted-viewport.ts
@@ -663,6 +663,8 @@ class ScryptedViewportProvider extends ScryptedDeviceBase
if (pending) clearTimeout(pending);
this.bindingDebounce.set(nid, setTimeout(() => {
this.bindingDebounce.delete(nid);
+ const tag = v.name || v.storage.getItem("display_name") || nid;
+ this.console.log(`onBindingChanged "${tag}": re-attach (host=${v.host || "?"} cameraId=${v.cameraId || "?"})`);
this.detachListener(nid);
// Any active stream for this viewport is now stale (camera
// or orientation may have changed). Stop cleanly; if it