@camstack/addon-decoder-ffmpeg 1.1.8 → 1.1.9

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 CHANGED
@@ -25924,15 +25924,19 @@ var DecoderFfmpegAddon = class extends BaseAddon {
25924
25924
  this.sessionMeta.set(sessionId, {
25925
25925
  codec: config.codec,
25926
25926
  outputFormat: config.outputFormat,
25927
- createdAtMs: Date.now()
25927
+ createdAtMs: Date.now(),
25928
+ deviceId: config.deviceId
25929
+ });
25930
+ this.ctx.logger.info("ffmpeg: created session", {
25931
+ tags: typeof config.deviceId === "number" ? { deviceId: config.deviceId } : void 0,
25932
+ meta: {
25933
+ sessionId,
25934
+ codec: config.codec,
25935
+ hwaccelChain,
25936
+ frameSink,
25937
+ nodeId
25938
+ }
25928
25939
  });
25929
- this.ctx.logger.info("ffmpeg: created session", { meta: {
25930
- sessionId,
25931
- codec: config.codec,
25932
- hwaccelChain,
25933
- frameSink,
25934
- nodeId
25935
- } });
25936
25940
  return {
25937
25941
  sessionId,
25938
25942
  nodeId
@@ -25971,13 +25975,17 @@ var DecoderFfmpegAddon = class extends BaseAddon {
25971
25975
  if (unsub) unsub();
25972
25976
  this.frameBuffers.get(sessionId)?.cancel();
25973
25977
  this.handleBuffers.get(sessionId)?.cancel();
25978
+ const deviceId = this.sessionMeta.get(sessionId)?.deviceId;
25974
25979
  await session.destroy();
25975
25980
  this.sessions.delete(sessionId);
25976
25981
  this.frameBuffers.delete(sessionId);
25977
25982
  this.handleBuffers.delete(sessionId);
25978
25983
  this.unsubscribers.delete(sessionId);
25979
25984
  this.sessionMeta.delete(sessionId);
25980
- this.ctx.logger.info("ffmpeg: destroyed session", { meta: { sessionId } });
25985
+ this.ctx.logger.info("ffmpeg: destroyed session", {
25986
+ tags: typeof deviceId === "number" ? { deviceId } : void 0,
25987
+ meta: { sessionId }
25988
+ });
25981
25989
  }
25982
25990
  async listActiveSessions() {
25983
25991
  const out = [];
package/dist/index.mjs CHANGED
@@ -25920,15 +25920,19 @@ var DecoderFfmpegAddon = class extends BaseAddon {
25920
25920
  this.sessionMeta.set(sessionId, {
25921
25921
  codec: config.codec,
25922
25922
  outputFormat: config.outputFormat,
25923
- createdAtMs: Date.now()
25923
+ createdAtMs: Date.now(),
25924
+ deviceId: config.deviceId
25925
+ });
25926
+ this.ctx.logger.info("ffmpeg: created session", {
25927
+ tags: typeof config.deviceId === "number" ? { deviceId: config.deviceId } : void 0,
25928
+ meta: {
25929
+ sessionId,
25930
+ codec: config.codec,
25931
+ hwaccelChain,
25932
+ frameSink,
25933
+ nodeId
25934
+ }
25924
25935
  });
25925
- this.ctx.logger.info("ffmpeg: created session", { meta: {
25926
- sessionId,
25927
- codec: config.codec,
25928
- hwaccelChain,
25929
- frameSink,
25930
- nodeId
25931
- } });
25932
25936
  return {
25933
25937
  sessionId,
25934
25938
  nodeId
@@ -25967,13 +25971,17 @@ var DecoderFfmpegAddon = class extends BaseAddon {
25967
25971
  if (unsub) unsub();
25968
25972
  this.frameBuffers.get(sessionId)?.cancel();
25969
25973
  this.handleBuffers.get(sessionId)?.cancel();
25974
+ const deviceId = this.sessionMeta.get(sessionId)?.deviceId;
25970
25975
  await session.destroy();
25971
25976
  this.sessions.delete(sessionId);
25972
25977
  this.frameBuffers.delete(sessionId);
25973
25978
  this.handleBuffers.delete(sessionId);
25974
25979
  this.unsubscribers.delete(sessionId);
25975
25980
  this.sessionMeta.delete(sessionId);
25976
- this.ctx.logger.info("ffmpeg: destroyed session", { meta: { sessionId } });
25981
+ this.ctx.logger.info("ffmpeg: destroyed session", {
25982
+ tags: typeof deviceId === "number" ? { deviceId } : void 0,
25983
+ meta: { sessionId }
25984
+ });
25977
25985
  }
25978
25986
  async listActiveSessions() {
25979
25987
  const out = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-ffmpeg",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "Standalone ffmpeg-subprocess decoder fallback addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",