camstreamerlib 4.0.0-beta.131 → 4.0.0-beta.132

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.
@@ -71,7 +71,7 @@ const parseVideoOptionsToVapixParams = (firmWareVersion, video) => {
71
71
  bitRateLimit: video.bitRateLimit,
72
72
  });
73
73
  let overlaysParams = '';
74
- if ((0, versionCompare_1.isFirmwareVersionAtLeast)(firmWareVersion, constants_1.FIRMWARE_WITH_OVERLAYS_SUPPORT)) {
74
+ if ((0, versionCompare_1.isFirmwareVersionAtLeast)(firmWareVersion, constants_1.FIRMWARE_WITH_OVERLAYS_SUPPORT) && video.overlays !== undefined) {
75
75
  overlaysParams = `&overlays=${video.overlays}`;
76
76
  }
77
77
  const nbrOfChannels = video.audio === 1 ? `&nbrOfChannels=${video.nbrOfChannels}` : '';
@@ -463,7 +463,7 @@ export declare const internalVapixParametersSchema: z.ZodObject<{
463
463
  h264Profile: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"high">, z.ZodLiteral<"main">, z.ZodLiteral<"baseline">]>>;
464
464
  audio: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
465
465
  nbrOfChannels: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
466
- overlays: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"application">, z.ZodLiteral<"">, z.ZodLiteral<"off">]>>;
466
+ overlays: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"application">, z.ZodLiteral<"off">]>>;
467
467
  }, "strip", z.ZodTypeAny, {
468
468
  camera: string;
469
469
  resolution: string;
@@ -476,7 +476,7 @@ export declare const internalVapixParametersSchema: z.ZodObject<{
476
476
  fps: number;
477
477
  govLength: number;
478
478
  videoCodec: "h264" | "h265" | "av1";
479
- overlays?: "" | "text" | "all" | "image" | "application" | "off" | undefined;
479
+ overlays?: "text" | "all" | "image" | "application" | "off" | undefined;
480
480
  h264Profile?: "high" | "main" | "baseline" | undefined;
481
481
  nbrOfChannels?: 1 | 2 | undefined;
482
482
  }, {
@@ -491,7 +491,7 @@ export declare const internalVapixParametersSchema: z.ZodObject<{
491
491
  fps: number;
492
492
  govLength: number;
493
493
  videoCodec: "h264" | "h265" | "av1";
494
- overlays?: "" | "text" | "all" | "image" | "application" | "off" | undefined;
494
+ overlays?: "text" | "all" | "image" | "application" | "off" | undefined;
495
495
  h264Profile?: "high" | "main" | "baseline" | undefined;
496
496
  nbrOfChannels?: 1 | 2 | undefined;
497
497
  }>;
@@ -107,13 +107,6 @@ exports.internalVapixParametersSchema = common_1.bitrateVapixParamsSchema.extend
107
107
  audio: common_1.booleanSchema,
108
108
  nbrOfChannels: zod_1.z.union([zod_1.z.literal(1), zod_1.z.literal(2)]).optional(),
109
109
  overlays: zod_1.z
110
- .union([
111
- zod_1.z.literal('all'),
112
- zod_1.z.literal('text'),
113
- zod_1.z.literal('image'),
114
- zod_1.z.literal('application'),
115
- zod_1.z.literal(''),
116
- zod_1.z.literal('off'),
117
- ])
110
+ .union([zod_1.z.literal('all'), zod_1.z.literal('text'), zod_1.z.literal('image'), zod_1.z.literal('application'), zod_1.z.literal('off')])
118
111
  .optional(),
119
112
  });
@@ -66,7 +66,7 @@ export const parseVideoOptionsToVapixParams = (firmWareVersion, video) => {
66
66
  bitRateLimit: video.bitRateLimit,
67
67
  });
68
68
  let overlaysParams = '';
69
- if (isFirmwareVersionAtLeast(firmWareVersion, FIRMWARE_WITH_OVERLAYS_SUPPORT)) {
69
+ if (isFirmwareVersionAtLeast(firmWareVersion, FIRMWARE_WITH_OVERLAYS_SUPPORT) && video.overlays !== undefined) {
70
70
  overlaysParams = `&overlays=${video.overlays}`;
71
71
  }
72
72
  const nbrOfChannels = video.audio === 1 ? `&nbrOfChannels=${video.nbrOfChannels}` : '';
@@ -104,13 +104,6 @@ export const internalVapixParametersSchema = bitrateVapixParamsSchema.extend({
104
104
  audio: booleanSchema,
105
105
  nbrOfChannels: z.union([z.literal(1), z.literal(2)]).optional(),
106
106
  overlays: z
107
- .union([
108
- z.literal('all'),
109
- z.literal('text'),
110
- z.literal('image'),
111
- z.literal('application'),
112
- z.literal(''),
113
- z.literal('off'),
114
- ])
107
+ .union([z.literal('all'), z.literal('text'), z.literal('image'), z.literal('application'), z.literal('off')])
115
108
  .optional(),
116
109
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.0-beta.131",
3
+ "version": "4.0.0-beta.132",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {
@@ -463,7 +463,7 @@ export declare const internalVapixParametersSchema: z.ZodObject<{
463
463
  h264Profile: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"high">, z.ZodLiteral<"main">, z.ZodLiteral<"baseline">]>>;
464
464
  audio: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
465
465
  nbrOfChannels: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
466
- overlays: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"application">, z.ZodLiteral<"">, z.ZodLiteral<"off">]>>;
466
+ overlays: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"text">, z.ZodLiteral<"image">, z.ZodLiteral<"application">, z.ZodLiteral<"off">]>>;
467
467
  }, "strip", z.ZodTypeAny, {
468
468
  camera: string;
469
469
  resolution: string;
@@ -476,7 +476,7 @@ export declare const internalVapixParametersSchema: z.ZodObject<{
476
476
  fps: number;
477
477
  govLength: number;
478
478
  videoCodec: "h264" | "h265" | "av1";
479
- overlays?: "" | "text" | "all" | "image" | "application" | "off" | undefined;
479
+ overlays?: "text" | "all" | "image" | "application" | "off" | undefined;
480
480
  h264Profile?: "high" | "main" | "baseline" | undefined;
481
481
  nbrOfChannels?: 1 | 2 | undefined;
482
482
  }, {
@@ -491,7 +491,7 @@ export declare const internalVapixParametersSchema: z.ZodObject<{
491
491
  fps: number;
492
492
  govLength: number;
493
493
  videoCodec: "h264" | "h265" | "av1";
494
- overlays?: "" | "text" | "all" | "image" | "application" | "off" | undefined;
494
+ overlays?: "text" | "all" | "image" | "application" | "off" | undefined;
495
495
  h264Profile?: "high" | "main" | "baseline" | undefined;
496
496
  nbrOfChannels?: 1 | 2 | undefined;
497
497
  }>;