@apocaliss92/nodelink-js 0.2.3 → 0.2.5
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/README.md +6 -2
- package/dist/{DiagnosticsTools-FNLGCOVA.js → DiagnosticsTools-2JQRV5FE.js} +2 -2
- package/dist/{chunk-NLTB7GTA.js → chunk-APEEZ4UN.js} +10 -9
- package/dist/{chunk-NLTB7GTA.js.map → chunk-APEEZ4UN.js.map} +1 -1
- package/dist/{chunk-RWYEGEWG.js → chunk-EG5IY3CM.js} +77 -9
- package/dist/chunk-EG5IY3CM.js.map +1 -0
- package/dist/cli/rtsp-server.cjs +82 -13
- package/dist/cli/rtsp-server.cjs.map +1 -1
- package/dist/cli/rtsp-server.js +2 -2
- package/dist/index.cjs +144 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +64 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-RWYEGEWG.js.map +0 -1
- /package/dist/{DiagnosticsTools-FNLGCOVA.js.map → DiagnosticsTools-2JQRV5FE.js.map} +0 -0
package/README.md
CHANGED
|
@@ -39,9 +39,13 @@ The library includes a **complete web-based management interface** for easy came
|
|
|
39
39
|
</p>
|
|
40
40
|
|
|
41
41
|
- 🎛️ **Camera Management** - Add, configure, and monitor multiple cameras
|
|
42
|
-
-
|
|
42
|
+
- 📡 **NVR / Hub Support** - Add NVRs as first-class entities, discover channels, and manage child cameras. All cameras on an NVR share a single connection (like Scrypted). Connect/disconnect at the NVR level; add or remove cameras at any time via channel discovery
|
|
43
|
+
- 🔋 **Battery Camera Support** - Cameras are auto-detected as battery-powered when they emit sleep/wake events. Per-camera battery mode setting: **Stream Only** (default — camera sleeps when no stream clients) or **Always On** (stays awake while connected). Live awake/sleeping badge on each camera card. Controls and stream discovery are paused while the camera sleeps to avoid unnecessary wake-ups
|
|
44
|
+
- 💡 **Camera Controls** - Toggle floodlight, siren, floodlight-on-motion, siren-on-motion, PTZ auto-tracking, and PIR sensor directly from the camera card. PTZ directional controls and preset navigation via a dedicated modal
|
|
45
|
+
- 📹 **Live Streaming** - Preview streams via MJPEG, WebRTC, or HLS. Stream options are cached so battery cameras show available streams even while sleeping
|
|
46
|
+
- 🔔 **Real-time Events** - Per-camera event viewer with live SSE updates (motion, doorbell, people, vehicle, animal, face, package, day/night, sleep/wake). Events are broadcast via SSE, NDJSON stream, and MQTT
|
|
43
47
|
- 📊 **Real-time Logs** - Monitor camera events and system logs
|
|
44
|
-
- ⚙️ **Settings** - Configure RTSP proxy, ports,
|
|
48
|
+
- ⚙️ **Settings** - Configure RTSP proxy, ports, auto-start options, MQTT broker, and Home Assistant discovery
|
|
45
49
|
- 📱 **PWA Support** - Install as a Progressive Web App on mobile devices
|
|
46
50
|
- 🌐 **Responsive Design** - Works on desktop, tablet, and mobile
|
|
47
51
|
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
runMultifocalDiagnosticsConsecutively,
|
|
10
10
|
sampleStreams,
|
|
11
11
|
testChannelStreams
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-APEEZ4UN.js";
|
|
13
13
|
export {
|
|
14
14
|
collectCgiDiagnostics,
|
|
15
15
|
collectMultifocalDiagnostics,
|
|
@@ -22,4 +22,4 @@ export {
|
|
|
22
22
|
sampleStreams,
|
|
23
23
|
testChannelStreams
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=DiagnosticsTools-
|
|
25
|
+
//# sourceMappingURL=DiagnosticsTools-2JQRV5FE.js.map
|
|
@@ -4562,14 +4562,6 @@ var BaichuanVideoStream = class _BaichuanVideoStream extends EventEmitter {
|
|
|
4562
4562
|
this.profile,
|
|
4563
4563
|
{ variant: this.variant, client: this.client }
|
|
4564
4564
|
);
|
|
4565
|
-
if (this.client.getTransport?.() === "udp") {
|
|
4566
|
-
await startPromise;
|
|
4567
|
-
} else {
|
|
4568
|
-
await Promise.race([
|
|
4569
|
-
startPromise,
|
|
4570
|
-
new Promise((resolve) => setTimeout(resolve, 400))
|
|
4571
|
-
]);
|
|
4572
|
-
}
|
|
4573
4565
|
const updateActiveMsgNum = () => {
|
|
4574
4566
|
try {
|
|
4575
4567
|
const getMsgNum = this.api.getActiveVideoMsgNumWithVariant;
|
|
@@ -4579,6 +4571,15 @@ var BaichuanVideoStream = class _BaichuanVideoStream extends EventEmitter {
|
|
|
4579
4571
|
}
|
|
4580
4572
|
};
|
|
4581
4573
|
updateActiveMsgNum();
|
|
4574
|
+
if (this.client.getTransport?.() === "udp") {
|
|
4575
|
+
await startPromise;
|
|
4576
|
+
} else {
|
|
4577
|
+
await Promise.race([
|
|
4578
|
+
startPromise,
|
|
4579
|
+
new Promise((resolve) => setTimeout(resolve, 400))
|
|
4580
|
+
]);
|
|
4581
|
+
}
|
|
4582
|
+
updateActiveMsgNum();
|
|
4582
4583
|
void startPromise.then(() => updateActiveMsgNum()).catch((e) => {
|
|
4583
4584
|
const err = e instanceof Error ? e : new Error(String(e));
|
|
4584
4585
|
this.emitSafeError(err);
|
|
@@ -7350,4 +7351,4 @@ export {
|
|
|
7350
7351
|
parseRecordingFileName,
|
|
7351
7352
|
ReolinkCgiApi
|
|
7352
7353
|
};
|
|
7353
|
-
//# sourceMappingURL=chunk-
|
|
7354
|
+
//# sourceMappingURL=chunk-APEEZ4UN.js.map
|