@apocaliss92/nodelink-js 0.4.34 → 0.4.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-OJ5RWPGY.js → chunk-N6TCSER3.js} +14 -2
- package/dist/chunk-N6TCSER3.js.map +1 -0
- package/dist/cli/rtsp-server.cjs +13 -1
- package/dist/cli/rtsp-server.cjs.map +1 -1
- package/dist/cli/rtsp-server.js +1 -1
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-OJ5RWPGY.js.map +0 -1
|
@@ -8274,7 +8274,19 @@ function computeDeviceCapabilities(params) {
|
|
|
8274
8274
|
// lightType >= 2 indicates controllable white LED / floodlight (1 = IR only).
|
|
8275
8275
|
// ledCtrl > 1 is a secondary signal that rescues firmwares like the Duo 3
|
|
8276
8276
|
// WiFi which under-report lightType (=1) despite having a real spotlight.
|
|
8277
|
-
|
|
8277
|
+
//
|
|
8278
|
+
// Doorbell exception: the Reolink desktop app's native SDK exposes
|
|
8279
|
+
// three SEPARATE ability flags — `supportFloodLight`, `supportDoorbellLight`
|
|
8280
|
+
// (with KeepOff/KeepOn sub-flags) and `supportIndicatorLight`. Doorbell-class
|
|
8281
|
+
// devices route the ring / button-area LED through `supportDoorbellLight`,
|
|
8282
|
+
// which is NOT a controllable white-light floodlight. We don't have a
|
|
8283
|
+
// documented bit-level mapping for ledCtrl, so we use the narrowest
|
|
8284
|
+
// rule that matches Reolink's own taxonomy: when the firmware is
|
|
8285
|
+
// categorical with lightType=0 AND the device identifies itself as a
|
|
8286
|
+
// doorbell (doorbellVersion > 0), trust lightType=0 and ignore the
|
|
8287
|
+
// ledCtrl bitmask. Verified against UID 9527000ICL1T1MDS (lightType=0,
|
|
8288
|
+
// ledCtrl=3073, doorbellVersion=31, no spotlight hardware).
|
|
8289
|
+
hasFloodlight: Number.isFinite(lightType) ? lightType >= 2 || hasFloodlightFromLedCtrl && !(isDoorbellFromSupport && lightType === 0) : hasFloodlightFromAbilities || hasFloodlightFromLedCtrl,
|
|
8278
8290
|
hasPir: hasPirFromAbilities || hasPirFromSupport,
|
|
8279
8291
|
isDoorbell,
|
|
8280
8292
|
hasAutotracking: ptzDisabledBySupport ? false : hasAutotrackingFromSupport || hasAutotrackingFromAbilities,
|
|
@@ -24794,4 +24806,4 @@ export {
|
|
|
24794
24806
|
isTcpFailureThatShouldFallbackToUdp,
|
|
24795
24807
|
autoDetectDeviceType
|
|
24796
24808
|
};
|
|
24797
|
-
//# sourceMappingURL=chunk-
|
|
24809
|
+
//# sourceMappingURL=chunk-N6TCSER3.js.map
|