@apocaliss92/nodelink-js 0.5.1-beta.0 → 0.5.1-beta.10

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.
@@ -12,7 +12,7 @@ import {
12
12
  sampleStreams,
13
13
  sanitizeFixtureData,
14
14
  testChannelStreams
15
- } from "./chunk-AHY4L7JI.js";
15
+ } from "./chunk-VOPEOB4H.js";
16
16
  import "./chunk-GVWJGQPT.js";
17
17
  export {
18
18
  captureModelFixtures,
@@ -29,4 +29,4 @@ export {
29
29
  sanitizeFixtureData,
30
30
  testChannelStreams
31
31
  };
32
- //# sourceMappingURL=DiagnosticsTools-ILDDJZL7.js.map
32
+ //# sourceMappingURL=DiagnosticsTools-7BIWJDZS.js.map
@@ -30,7 +30,7 @@ import {
30
30
  runAllDiagnosticsConsecutively,
31
31
  runMultifocalDiagnosticsConsecutively,
32
32
  xmlEscape
33
- } from "./chunk-AHY4L7JI.js";
33
+ } from "./chunk-VOPEOB4H.js";
34
34
  import {
35
35
  BC_CLASS_FILE_DOWNLOAD,
36
36
  BC_CLASS_LEGACY,
@@ -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,
@@ -20165,7 +20196,7 @@ ${xml}`
20165
20196
  * @returns Test results for all stream types and profiles
20166
20197
  */
20167
20198
  async testChannelStreams(channel, logger) {
20168
- const { testChannelStreams } = await import("./DiagnosticsTools-ILDDJZL7.js");
20199
+ const { testChannelStreams } = await import("./DiagnosticsTools-7BIWJDZS.js");
20169
20200
  return await testChannelStreams({
20170
20201
  api: this,
20171
20202
  channel: this.normalizeChannel(channel),
@@ -20181,7 +20212,7 @@ ${xml}`
20181
20212
  * @returns Complete diagnostics for all channels and streams
20182
20213
  */
20183
20214
  async collectMultifocalDiagnostics(logger) {
20184
- const { collectMultifocalDiagnostics } = await import("./DiagnosticsTools-ILDDJZL7.js");
20215
+ const { collectMultifocalDiagnostics } = await import("./DiagnosticsTools-7BIWJDZS.js");
20185
20216
  return await collectMultifocalDiagnostics({
20186
20217
  api: this,
20187
20218
  logger
@@ -24825,4 +24856,4 @@ export {
24825
24856
  isTcpFailureThatShouldFallbackToUdp,
24826
24857
  autoDetectDeviceType
24827
24858
  };
24828
- //# sourceMappingURL=chunk-6ILAHQF5.js.map
24859
+ //# sourceMappingURL=chunk-27IU7NXS.js.map