@apocaliss92/nodelink-js 0.5.1-beta.5 → 0.5.1-beta.7
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-SNLZ45EF.js → chunk-27IU7NXS.js} +32 -1
- package/dist/{chunk-SNLZ45EF.js.map → chunk-27IU7NXS.js.map} +1 -1
- package/dist/cli/rtsp-server.cjs +31 -0
- package/dist/cli/rtsp-server.cjs.map +1 -1
- package/dist/cli/rtsp-server.js +1 -1
- package/dist/index.cjs +46 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12517 -12065
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -19771,6 +19771,37 @@ ${xml}`
|
|
|
19771
19771
|
}
|
|
19772
19772
|
);
|
|
19773
19773
|
}
|
|
19774
|
+
if (!isMultiFocal) {
|
|
19775
|
+
try {
|
|
19776
|
+
const caps = await this.getDeviceCapabilities(channel);
|
|
19777
|
+
const channelNumRaw = caps.support?.channelNum;
|
|
19778
|
+
const channelNum = typeof channelNumRaw === "string" ? Number.parseInt(channelNumRaw, 10) : channelNumRaw;
|
|
19779
|
+
if (Number.isFinite(channelNum) && channelNum >= 2) {
|
|
19780
|
+
isMultiFocal = true;
|
|
19781
|
+
}
|
|
19782
|
+
if (!isMultiFocal) {
|
|
19783
|
+
const items = caps.support?.items;
|
|
19784
|
+
if (Array.isArray(items)) {
|
|
19785
|
+
for (const it of items) {
|
|
19786
|
+
const raw = it.binoCfg;
|
|
19787
|
+
const v = typeof raw === "number" ? raw : typeof raw === "string" ? Number(raw) : 0;
|
|
19788
|
+
if (Number.isFinite(v) && v > 0) {
|
|
19789
|
+
isMultiFocal = true;
|
|
19790
|
+
break;
|
|
19791
|
+
}
|
|
19792
|
+
}
|
|
19793
|
+
}
|
|
19794
|
+
}
|
|
19795
|
+
} catch (e) {
|
|
19796
|
+
logDebug(
|
|
19797
|
+
"[ReolinkBaichuanApi] buildVideoStreamOptions: SupportInfo dual-lens probe failed",
|
|
19798
|
+
{
|
|
19799
|
+
host: this.host,
|
|
19800
|
+
err: e instanceof Error ? e.message : String(e)
|
|
19801
|
+
}
|
|
19802
|
+
);
|
|
19803
|
+
}
|
|
19804
|
+
}
|
|
19774
19805
|
logDebug("[ReolinkBaichuanApi] buildVideoStreamOptions: inputs", {
|
|
19775
19806
|
host: this.host,
|
|
19776
19807
|
onNvr,
|
|
@@ -24825,4 +24856,4 @@ export {
|
|
|
24825
24856
|
isTcpFailureThatShouldFallbackToUdp,
|
|
24826
24857
|
autoDetectDeviceType
|
|
24827
24858
|
};
|
|
24828
|
-
//# sourceMappingURL=chunk-
|
|
24859
|
+
//# sourceMappingURL=chunk-27IU7NXS.js.map
|