diff options
| author | Luke Hoersten <[email protected]> | 2026-06-21 13:14:15 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-06-21 13:14:15 -0500 |
| commit | c9019841db828f63a24ff1a65fa8c999851dcf66 (patch) | |
| tree | 1363a74a0f2b3cbd77f0b9c9563e44ac9bb8de3b | |
| parent | 844363e067eaebceae12bc520a917c1733d6cd61 (diff) | |
scrypted: log every onBindingChanged re-attach with host/cameraId
| -rw-r--r-- | scrypted/scrypted-viewport.ts | 2 |
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 |
