@camstack/addon-provider-reolink 1.2.95 → 1.2.97
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/BaichuanVideoStream-PBJL3EB5-D-etWPiW.mjs +2 -0
- package/dist/BaichuanVideoStream-PBJL3EB5-qv_JKCPo.js +3 -0
- package/dist/addon.js +2308 -91503
- package/dist/addon.mjs +2139 -91319
- package/dist/{chunk-MZUSWKF3-CwIAby8V.js → chunk-KWWUCNIY-BtO6U6BT.js} +20 -1
- package/dist/{chunk-MZUSWKF3-yQgmMM4X.mjs → chunk-KWWUCNIY-Ccq-OAGJ.mjs} +20 -1
- package/dist/esm-DMN00Ym_.js +90287 -0
- package/dist/esm-DsdWoSZo.mjs +90212 -0
- package/dist/fonts-CJf_QFtH.mjs +22 -0
- package/dist/fonts-CTPajh4o.js +36 -0
- package/package.json +2 -2
- package/dist/BaichuanVideoStream-OCLOM452-D8bhy8ZI.js +0 -3
- package/dist/BaichuanVideoStream-OCLOM452-DufjbGei.mjs +0 -2
- /package/dist/{DiagnosticsTools-QJ3CRYGA-9NV95vRN.mjs → DiagnosticsTools-TID5M22B-9NV95vRN.mjs} +0 -0
- /package/dist/{DiagnosticsTools-QJ3CRYGA-CD4rRF8a.js → DiagnosticsTools-TID5M22B-CD4rRF8a.js} +0 -0
|
@@ -5,7 +5,7 @@ fs = require_chunk.__toESM(fs, 1);
|
|
|
5
5
|
let path = require("path");
|
|
6
6
|
path = require_chunk.__toESM(path, 1);
|
|
7
7
|
let crypto = require("crypto");
|
|
8
|
-
//#region
|
|
8
|
+
//#region node_modules/@apocaliss92/nodelink-js/dist/chunk-KWWUCNIY.js
|
|
9
9
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
10
10
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
11
|
throw Error("Dynamic require of \"" + x + "\" is not supported");
|
|
@@ -1299,6 +1299,7 @@ var BaichuanVideoStream = class _BaichuanVideoStream extends events.EventEmitter
|
|
|
1299
1299
|
logger;
|
|
1300
1300
|
active = false;
|
|
1301
1301
|
videoFrameHandler;
|
|
1302
|
+
clientCloseHandler;
|
|
1302
1303
|
expectedStreamTypes;
|
|
1303
1304
|
activeMsgNum;
|
|
1304
1305
|
cmdId;
|
|
@@ -1975,6 +1976,16 @@ var BaichuanVideoStream = class _BaichuanVideoStream extends events.EventEmitter
|
|
|
1975
1976
|
if (videoFramesEmitted > 0 && (totalFramesReceived <= 10 || totalFramesReceived % 50 === 0)) {}
|
|
1976
1977
|
};
|
|
1977
1978
|
this.client.on("push", this.videoFrameHandler);
|
|
1979
|
+
this.clientCloseHandler = () => {
|
|
1980
|
+
if (!this.active) return;
|
|
1981
|
+
this.logger?.warn?.(`[BaichuanVideoStream] underlying socket closed (channel=${this.channel} profile=${this.profile}) \u2014 ending stream for rebuild`);
|
|
1982
|
+
this.active = false;
|
|
1983
|
+
this.stopWatchdog();
|
|
1984
|
+
if (this.videoFrameHandler) this.client.off("push", this.videoFrameHandler);
|
|
1985
|
+
this.videoFrameHandler = void 0;
|
|
1986
|
+
this.emit("close");
|
|
1987
|
+
};
|
|
1988
|
+
this.client.on("close", this.clientCloseHandler);
|
|
1978
1989
|
this.active = true;
|
|
1979
1990
|
this.startWatchdog();
|
|
1980
1991
|
if (this.api && typeof this.api._registerVideoStreamForDetection === "function") this.detectionTeardown = this.api._registerVideoStreamForDetection(this, {
|
|
@@ -2025,6 +2036,10 @@ var BaichuanVideoStream = class _BaichuanVideoStream extends events.EventEmitter
|
|
|
2025
2036
|
this.active = false;
|
|
2026
2037
|
if (this.videoFrameHandler) this.client.off("push", this.videoFrameHandler);
|
|
2027
2038
|
this.videoFrameHandler = void 0;
|
|
2039
|
+
if (this.clientCloseHandler) {
|
|
2040
|
+
this.client.off("close", this.clientCloseHandler);
|
|
2041
|
+
this.clientCloseHandler = void 0;
|
|
2042
|
+
}
|
|
2028
2043
|
throw err;
|
|
2029
2044
|
}
|
|
2030
2045
|
this.emitSafeError(err);
|
|
@@ -2040,6 +2055,10 @@ var BaichuanVideoStream = class _BaichuanVideoStream extends events.EventEmitter
|
|
|
2040
2055
|
this.depacketizerH265.reset();
|
|
2041
2056
|
if (this.videoFrameHandler) this.client.removeListener("push", this.videoFrameHandler);
|
|
2042
2057
|
this.videoFrameHandler = void 0;
|
|
2058
|
+
if (this.clientCloseHandler) {
|
|
2059
|
+
this.client.removeListener("close", this.clientCloseHandler);
|
|
2060
|
+
this.clientCloseHandler = void 0;
|
|
2061
|
+
}
|
|
2043
2062
|
this.bcMediaCodec.clear();
|
|
2044
2063
|
this.activeMsgNum = void 0;
|
|
2045
2064
|
if (this.api) try {
|
|
@@ -3,7 +3,7 @@ import { EventEmitter } from "events";
|
|
|
3
3
|
import * as fs2 from "fs";
|
|
4
4
|
import * as path2 from "path";
|
|
5
5
|
import { createCipheriv, createDecipheriv, createHash } from "crypto";
|
|
6
|
-
//#region
|
|
6
|
+
//#region node_modules/@apocaliss92/nodelink-js/dist/chunk-KWWUCNIY.js
|
|
7
7
|
var __require = /* @__PURE__ */ ((x) => typeof __require$1 !== "undefined" ? __require$1 : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof __require$1 !== "undefined" ? __require$1 : a)[b] }) : x)(function(x) {
|
|
8
8
|
if (typeof __require$1 !== "undefined") return __require$1.apply(this, arguments);
|
|
9
9
|
throw Error("Dynamic require of \"" + x + "\" is not supported");
|
|
@@ -1297,6 +1297,7 @@ var BaichuanVideoStream = class _BaichuanVideoStream extends EventEmitter {
|
|
|
1297
1297
|
logger;
|
|
1298
1298
|
active = false;
|
|
1299
1299
|
videoFrameHandler;
|
|
1300
|
+
clientCloseHandler;
|
|
1300
1301
|
expectedStreamTypes;
|
|
1301
1302
|
activeMsgNum;
|
|
1302
1303
|
cmdId;
|
|
@@ -1973,6 +1974,16 @@ var BaichuanVideoStream = class _BaichuanVideoStream extends EventEmitter {
|
|
|
1973
1974
|
if (videoFramesEmitted > 0 && (totalFramesReceived <= 10 || totalFramesReceived % 50 === 0)) {}
|
|
1974
1975
|
};
|
|
1975
1976
|
this.client.on("push", this.videoFrameHandler);
|
|
1977
|
+
this.clientCloseHandler = () => {
|
|
1978
|
+
if (!this.active) return;
|
|
1979
|
+
this.logger?.warn?.(`[BaichuanVideoStream] underlying socket closed (channel=${this.channel} profile=${this.profile}) \u2014 ending stream for rebuild`);
|
|
1980
|
+
this.active = false;
|
|
1981
|
+
this.stopWatchdog();
|
|
1982
|
+
if (this.videoFrameHandler) this.client.off("push", this.videoFrameHandler);
|
|
1983
|
+
this.videoFrameHandler = void 0;
|
|
1984
|
+
this.emit("close");
|
|
1985
|
+
};
|
|
1986
|
+
this.client.on("close", this.clientCloseHandler);
|
|
1976
1987
|
this.active = true;
|
|
1977
1988
|
this.startWatchdog();
|
|
1978
1989
|
if (this.api && typeof this.api._registerVideoStreamForDetection === "function") this.detectionTeardown = this.api._registerVideoStreamForDetection(this, {
|
|
@@ -2023,6 +2034,10 @@ var BaichuanVideoStream = class _BaichuanVideoStream extends EventEmitter {
|
|
|
2023
2034
|
this.active = false;
|
|
2024
2035
|
if (this.videoFrameHandler) this.client.off("push", this.videoFrameHandler);
|
|
2025
2036
|
this.videoFrameHandler = void 0;
|
|
2037
|
+
if (this.clientCloseHandler) {
|
|
2038
|
+
this.client.off("close", this.clientCloseHandler);
|
|
2039
|
+
this.clientCloseHandler = void 0;
|
|
2040
|
+
}
|
|
2026
2041
|
throw err;
|
|
2027
2042
|
}
|
|
2028
2043
|
this.emitSafeError(err);
|
|
@@ -2038,6 +2053,10 @@ var BaichuanVideoStream = class _BaichuanVideoStream extends EventEmitter {
|
|
|
2038
2053
|
this.depacketizerH265.reset();
|
|
2039
2054
|
if (this.videoFrameHandler) this.client.removeListener("push", this.videoFrameHandler);
|
|
2040
2055
|
this.videoFrameHandler = void 0;
|
|
2056
|
+
if (this.clientCloseHandler) {
|
|
2057
|
+
this.client.removeListener("close", this.clientCloseHandler);
|
|
2058
|
+
this.clientCloseHandler = void 0;
|
|
2059
|
+
}
|
|
2041
2060
|
this.bcMediaCodec.clear();
|
|
2042
2061
|
this.activeMsgNum = void 0;
|
|
2043
2062
|
if (this.api) try {
|