@camstack/addon-decoder-nodeav 1.1.7 → 1.1.8
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/index.js +17 -9
- package/dist/index.mjs +17 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25888,15 +25888,19 @@ var DecoderNodeAvAddon = class extends BaseAddon {
|
|
|
25888
25888
|
this.sessionMeta.set(sessionId, {
|
|
25889
25889
|
codec: config.codec,
|
|
25890
25890
|
outputFormat: config.outputFormat,
|
|
25891
|
-
createdAtMs: Date.now()
|
|
25891
|
+
createdAtMs: Date.now(),
|
|
25892
|
+
deviceId: config.deviceId
|
|
25893
|
+
});
|
|
25894
|
+
this.ctx.logger.info("node-av: created session", {
|
|
25895
|
+
tags: typeof config.deviceId === "number" ? { deviceId: config.deviceId } : void 0,
|
|
25896
|
+
meta: {
|
|
25897
|
+
sessionId,
|
|
25898
|
+
codec: config.codec,
|
|
25899
|
+
hwaccelPref: hwaccel,
|
|
25900
|
+
frameSink,
|
|
25901
|
+
nodeId
|
|
25902
|
+
}
|
|
25892
25903
|
});
|
|
25893
|
-
this.ctx.logger.info("node-av: created session", { meta: {
|
|
25894
|
-
sessionId,
|
|
25895
|
-
codec: config.codec,
|
|
25896
|
-
hwaccelPref: hwaccel,
|
|
25897
|
-
frameSink,
|
|
25898
|
-
nodeId
|
|
25899
|
-
} });
|
|
25900
25904
|
return {
|
|
25901
25905
|
sessionId,
|
|
25902
25906
|
nodeId
|
|
@@ -25944,13 +25948,17 @@ var DecoderNodeAvAddon = class extends BaseAddon {
|
|
|
25944
25948
|
if (unsub) unsub();
|
|
25945
25949
|
this.frameBuffers.get(sessionId)?.cancel();
|
|
25946
25950
|
this.handleBuffers.get(sessionId)?.cancel();
|
|
25951
|
+
const deviceId = this.sessionMeta.get(sessionId)?.deviceId;
|
|
25947
25952
|
await session.destroy();
|
|
25948
25953
|
this.sessions.delete(sessionId);
|
|
25949
25954
|
this.frameBuffers.delete(sessionId);
|
|
25950
25955
|
this.handleBuffers.delete(sessionId);
|
|
25951
25956
|
this.unsubscribers.delete(sessionId);
|
|
25952
25957
|
this.sessionMeta.delete(sessionId);
|
|
25953
|
-
this.ctx.logger.info("node-av: destroyed session", {
|
|
25958
|
+
this.ctx.logger.info("node-av: destroyed session", {
|
|
25959
|
+
tags: typeof deviceId === "number" ? { deviceId } : void 0,
|
|
25960
|
+
meta: { sessionId }
|
|
25961
|
+
});
|
|
25954
25962
|
}
|
|
25955
25963
|
async listActiveSessions() {
|
|
25956
25964
|
const out = [];
|
package/dist/index.mjs
CHANGED
|
@@ -25884,15 +25884,19 @@ var DecoderNodeAvAddon = class extends BaseAddon {
|
|
|
25884
25884
|
this.sessionMeta.set(sessionId, {
|
|
25885
25885
|
codec: config.codec,
|
|
25886
25886
|
outputFormat: config.outputFormat,
|
|
25887
|
-
createdAtMs: Date.now()
|
|
25887
|
+
createdAtMs: Date.now(),
|
|
25888
|
+
deviceId: config.deviceId
|
|
25889
|
+
});
|
|
25890
|
+
this.ctx.logger.info("node-av: created session", {
|
|
25891
|
+
tags: typeof config.deviceId === "number" ? { deviceId: config.deviceId } : void 0,
|
|
25892
|
+
meta: {
|
|
25893
|
+
sessionId,
|
|
25894
|
+
codec: config.codec,
|
|
25895
|
+
hwaccelPref: hwaccel,
|
|
25896
|
+
frameSink,
|
|
25897
|
+
nodeId
|
|
25898
|
+
}
|
|
25888
25899
|
});
|
|
25889
|
-
this.ctx.logger.info("node-av: created session", { meta: {
|
|
25890
|
-
sessionId,
|
|
25891
|
-
codec: config.codec,
|
|
25892
|
-
hwaccelPref: hwaccel,
|
|
25893
|
-
frameSink,
|
|
25894
|
-
nodeId
|
|
25895
|
-
} });
|
|
25896
25900
|
return {
|
|
25897
25901
|
sessionId,
|
|
25898
25902
|
nodeId
|
|
@@ -25940,13 +25944,17 @@ var DecoderNodeAvAddon = class extends BaseAddon {
|
|
|
25940
25944
|
if (unsub) unsub();
|
|
25941
25945
|
this.frameBuffers.get(sessionId)?.cancel();
|
|
25942
25946
|
this.handleBuffers.get(sessionId)?.cancel();
|
|
25947
|
+
const deviceId = this.sessionMeta.get(sessionId)?.deviceId;
|
|
25943
25948
|
await session.destroy();
|
|
25944
25949
|
this.sessions.delete(sessionId);
|
|
25945
25950
|
this.frameBuffers.delete(sessionId);
|
|
25946
25951
|
this.handleBuffers.delete(sessionId);
|
|
25947
25952
|
this.unsubscribers.delete(sessionId);
|
|
25948
25953
|
this.sessionMeta.delete(sessionId);
|
|
25949
|
-
this.ctx.logger.info("node-av: destroyed session", {
|
|
25954
|
+
this.ctx.logger.info("node-av: destroyed session", {
|
|
25955
|
+
tags: typeof deviceId === "number" ? { deviceId } : void 0,
|
|
25956
|
+
meta: { sessionId }
|
|
25957
|
+
});
|
|
25950
25958
|
}
|
|
25951
25959
|
async listActiveSessions() {
|
|
25952
25960
|
const out = [];
|