@apocaliss92/nodelink-js 0.4.13 → 0.4.14
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-R5AJV73A.js → chunk-WKETZFBI.js} +21 -2
- package/dist/chunk-WKETZFBI.js.map +1 -0
- package/dist/cli/rtsp-server.cjs +20 -1
- package/dist/cli/rtsp-server.cjs.map +1 -1
- package/dist/cli/rtsp-server.js +1 -1
- package/dist/index.cjs +20 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-R5AJV73A.js.map +0 -1
|
@@ -20373,7 +20373,26 @@ ${xml}`
|
|
|
20373
20373
|
*/
|
|
20374
20374
|
async getEncOptions(channel, options) {
|
|
20375
20375
|
const list = await this.getStreamInfoList(channel, options);
|
|
20376
|
-
|
|
20376
|
+
const built = buildEncOptions(list, channel);
|
|
20377
|
+
try {
|
|
20378
|
+
const enc = await this.getEnc(channel, options);
|
|
20379
|
+
const compression = enc.body?.Compression;
|
|
20380
|
+
const mergeGop = (target, stream) => {
|
|
20381
|
+
if (!target || !stream) return;
|
|
20382
|
+
const g = stream.gop;
|
|
20383
|
+
if (!g) return;
|
|
20384
|
+
target.gopRange = {
|
|
20385
|
+
...g.cur !== void 0 ? { cur: g.cur } : {},
|
|
20386
|
+
...g.min !== void 0 ? { min: g.min } : {},
|
|
20387
|
+
...g.max !== void 0 ? { max: g.max } : {}
|
|
20388
|
+
};
|
|
20389
|
+
};
|
|
20390
|
+
mergeGop(built.mainStream, compression?.mainStream);
|
|
20391
|
+
mergeGop(built.subStream, compression?.subStream);
|
|
20392
|
+
mergeGop(built.thirdStream, compression?.thirdStream);
|
|
20393
|
+
} catch {
|
|
20394
|
+
}
|
|
20395
|
+
return built;
|
|
20377
20396
|
}
|
|
20378
20397
|
/**
|
|
20379
20398
|
* Read the camera's `<VersionInfo>` block (cmd_id=80). Returns the
|
|
@@ -23861,4 +23880,4 @@ export {
|
|
|
23861
23880
|
isTcpFailureThatShouldFallbackToUdp,
|
|
23862
23881
|
autoDetectDeviceType
|
|
23863
23882
|
};
|
|
23864
|
-
//# sourceMappingURL=chunk-
|
|
23883
|
+
//# sourceMappingURL=chunk-WKETZFBI.js.map
|