@camstack/addon-provider-reolink 1.2.160 → 1.2.161
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-UG3DIMIE-BRbIHCdL.mjs +2 -0
- package/dist/BaichuanVideoStream-UG3DIMIE-DViuQDJ4.js +3 -0
- package/dist/addon.js +2409 -569
- package/dist/addon.mjs +2249 -409
- package/dist/{chunk-ZBACPERX-cDJK1KXE.mjs → chunk-OSVYEFMM-Bl0F4OJc.mjs} +5 -4
- package/dist/{chunk-ZBACPERX-BM6Ll-rh.js → chunk-OSVYEFMM-Czx77gto.js} +10 -3
- package/package.json +5 -2
- package/dist/BaichuanVideoStream-FOE2DBVZ-94yIU75L.mjs +0 -2
- package/dist/BaichuanVideoStream-FOE2DBVZ-DJcEkVak.js +0 -3
- /package/dist/{DiagnosticsTools-ZC7I7QM6-9NV95vRN.mjs → DiagnosticsTools-YIWXO7IJ-9NV95vRN.mjs} +0 -0
- /package/dist/{DiagnosticsTools-ZC7I7QM6-CD4rRF8a.js → DiagnosticsTools-YIWXO7IJ-CD4rRF8a.js} +0 -0
|
@@ -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 node_modules/@apocaliss92/nodelink-js/dist/chunk-
|
|
6
|
+
//#region node_modules/@apocaliss92/nodelink-js/dist/chunk-OSVYEFMM.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");
|
|
@@ -40,6 +40,7 @@ function bcHeaderHasPayloadOffset(messageClass) {
|
|
|
40
40
|
return messageClass === 25620 || messageClass === 0 || messageClass === 25730;
|
|
41
41
|
}
|
|
42
42
|
var DEFAULT_RECORDING_DOWNLOAD_IDLE_MS = 2e3;
|
|
43
|
+
var DEFAULT_REPLAY_STOP_DRAIN_MAX_MS = 4e3;
|
|
43
44
|
function md5HexUpper(input) {
|
|
44
45
|
return createHash("md5").update(input, "utf8").digest("hex").toUpperCase();
|
|
45
46
|
}
|
|
@@ -190,7 +191,7 @@ function parseInfoV2(buf) {
|
|
|
190
191
|
};
|
|
191
192
|
}
|
|
192
193
|
function parseIframe(buf) {
|
|
193
|
-
if (buf.length <
|
|
194
|
+
if (buf.length < 24) return null;
|
|
194
195
|
const videoTypeStr = buf.toString("utf8", 4, 8);
|
|
195
196
|
if (videoTypeStr !== "H264" && videoTypeStr !== "H265") return null;
|
|
196
197
|
const videoType = videoTypeStr;
|
|
@@ -226,7 +227,7 @@ function parseIframe(buf) {
|
|
|
226
227
|
};
|
|
227
228
|
}
|
|
228
229
|
function parsePframe(buf) {
|
|
229
|
-
if (buf.length <
|
|
230
|
+
if (buf.length < 24) return null;
|
|
230
231
|
const videoTypeStr = buf.toString("utf8", 4, 8);
|
|
231
232
|
if (videoTypeStr !== "H264" && videoTypeStr !== "H265") return null;
|
|
232
233
|
const videoType = videoTypeStr;
|
|
@@ -2080,4 +2081,4 @@ var BaichuanVideoStream = class _BaichuanVideoStream extends EventEmitter {
|
|
|
2080
2081
|
}
|
|
2081
2082
|
};
|
|
2082
2083
|
//#endregion
|
|
2083
|
-
export {
|
|
2084
|
+
export { recordingsTraceLog as A, extractPpsFromAnnexB as C, isH265Irap as D, getH265NalType as E, splitAnnexBToNalPayloads2 as M, talkTraceLog as N, md5StrModern as O, traceLog as P, eventTraceLog as S, extractVpsFromAnnexB as T, bcHeaderHasPayloadOffset as _, BC_MAGIC as a, debugLog as b, BaichuanVideoStream as c, DEFAULT_REPLAY_STOP_DRAIN_MAX_MS as d, __require as f, bcEncrypt as g, bcDecrypt as h, BC_CLASS_MODERN_24 as i, splitAnnexBToNalPayloads as j, normalizeDebugOptions as k, BcMediaAnnexBDecoder as l, aesEncrypt as m, BC_CLASS_LEGACY as n, BC_MAGIC_REV as o, aesDecrypt as p, BC_CLASS_MODERN_20 as r, BC_TCP_DEFAULT_PORT as s, BC_CLASS_FILE_DOWNLOAD as t, DEFAULT_RECORDING_DOWNLOAD_IDLE_MS as u, convertToAnnexB as v, extractSpsFromAnnexB as w, deriveAesKey as x, convertToAnnexB2 as y };
|
|
@@ -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 node_modules/@apocaliss92/nodelink-js/dist/chunk-
|
|
8
|
+
//#region node_modules/@apocaliss92/nodelink-js/dist/chunk-OSVYEFMM.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");
|
|
@@ -42,6 +42,7 @@ function bcHeaderHasPayloadOffset(messageClass) {
|
|
|
42
42
|
return messageClass === 25620 || messageClass === 0 || messageClass === 25730;
|
|
43
43
|
}
|
|
44
44
|
var DEFAULT_RECORDING_DOWNLOAD_IDLE_MS = 2e3;
|
|
45
|
+
var DEFAULT_REPLAY_STOP_DRAIN_MAX_MS = 4e3;
|
|
45
46
|
function md5HexUpper(input) {
|
|
46
47
|
return (0, crypto.createHash)("md5").update(input, "utf8").digest("hex").toUpperCase();
|
|
47
48
|
}
|
|
@@ -192,7 +193,7 @@ function parseInfoV2(buf) {
|
|
|
192
193
|
};
|
|
193
194
|
}
|
|
194
195
|
function parseIframe(buf) {
|
|
195
|
-
if (buf.length <
|
|
196
|
+
if (buf.length < 24) return null;
|
|
196
197
|
const videoTypeStr = buf.toString("utf8", 4, 8);
|
|
197
198
|
if (videoTypeStr !== "H264" && videoTypeStr !== "H265") return null;
|
|
198
199
|
const videoType = videoTypeStr;
|
|
@@ -228,7 +229,7 @@ function parseIframe(buf) {
|
|
|
228
229
|
};
|
|
229
230
|
}
|
|
230
231
|
function parsePframe(buf) {
|
|
231
|
-
if (buf.length <
|
|
232
|
+
if (buf.length < 24) return null;
|
|
232
233
|
const videoTypeStr = buf.toString("utf8", 4, 8);
|
|
233
234
|
if (videoTypeStr !== "H264" && videoTypeStr !== "H265") return null;
|
|
234
235
|
const videoType = videoTypeStr;
|
|
@@ -2142,6 +2143,12 @@ Object.defineProperty(exports, "DEFAULT_RECORDING_DOWNLOAD_IDLE_MS", {
|
|
|
2142
2143
|
return DEFAULT_RECORDING_DOWNLOAD_IDLE_MS;
|
|
2143
2144
|
}
|
|
2144
2145
|
});
|
|
2146
|
+
Object.defineProperty(exports, "DEFAULT_REPLAY_STOP_DRAIN_MAX_MS", {
|
|
2147
|
+
enumerable: true,
|
|
2148
|
+
get: function() {
|
|
2149
|
+
return DEFAULT_REPLAY_STOP_DRAIN_MAX_MS;
|
|
2150
|
+
}
|
|
2151
|
+
});
|
|
2145
2152
|
Object.defineProperty(exports, "__require", {
|
|
2146
2153
|
enumerable: true,
|
|
2147
2154
|
get: function() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-reolink",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.161",
|
|
4
4
|
"description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -54,6 +54,9 @@
|
|
|
54
54
|
{
|
|
55
55
|
"name": "stream-params"
|
|
56
56
|
},
|
|
57
|
+
{
|
|
58
|
+
"name": "recording-onboard"
|
|
59
|
+
},
|
|
57
60
|
{
|
|
58
61
|
"name": "motion-zones"
|
|
59
62
|
},
|
|
@@ -91,7 +94,7 @@
|
|
|
91
94
|
"publish:npm": "npm publish --access public"
|
|
92
95
|
},
|
|
93
96
|
"dependencies": {
|
|
94
|
-
"@apocaliss92/nodelink-js": "^0.
|
|
97
|
+
"@apocaliss92/nodelink-js": "^0.10.0"
|
|
95
98
|
},
|
|
96
99
|
"peerDependencies": {
|
|
97
100
|
"@camstack/types": "*",
|
/package/dist/{DiagnosticsTools-ZC7I7QM6-9NV95vRN.mjs → DiagnosticsTools-YIWXO7IJ-9NV95vRN.mjs}
RENAMED
|
File without changes
|
/package/dist/{DiagnosticsTools-ZC7I7QM6-CD4rRF8a.js → DiagnosticsTools-YIWXO7IJ-CD4rRF8a.js}
RENAMED
|
File without changes
|