@camstack/addon-decoder-nodeav 1.2.107 → 1.2.109

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
@@ -12300,7 +12300,23 @@ var PickStreamRequirementsSchema = object({
12300
12300
  * This is what lets one picker serve both the bypass and the full source
12301
12301
  * choice, instead of a consumer scoring privately when the bypass misses.
12302
12302
  */
12303
- allowTranscode: boolean().optional()
12303
+ allowTranscode: boolean().optional(),
12304
+ /**
12305
+ * Consider ONLY streams the broker has bound to a profile slot.
12306
+ *
12307
+ * A consumer that dials the broker — which is every exporter, since none
12308
+ * of them may open the camera's own URL — can do nothing with a source
12309
+ * that has no slot: there is no restream to dial. Without this the picker
12310
+ * can name such a stream, and each consumer discovers the dead end for
12311
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12312
+ * falls back, and HomeKit would have had to grow the same function again.
12313
+ *
12314
+ * Default `false`, and deliberately so: the BROKER itself picks through
12315
+ * here when it decides which source to BIND to a slot
12316
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12317
+ * could never bind them.
12318
+ */
12319
+ requireProfileBound: boolean().optional()
12304
12320
  }).readonly();
12305
12321
  var PickStreamPreferencesSchema = object({
12306
12322
  /**
@@ -12341,7 +12357,43 @@ var PickedCamStreamSchema = object({
12341
12357
  */
12342
12358
  transcodes: boolean(),
12343
12359
  /** One-line explanation of why this stream won — for logs / debug UI. */
12344
- reason: string()
12360
+ reason: string(),
12361
+ /**
12362
+ * The broker profile slot this source is bound to, when it is bound.
12363
+ *
12364
+ * Answered HERE because every consumer needs it and none of them can get it
12365
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12366
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12367
+ * the same function a second time.
12368
+ *
12369
+ * Absent when the source has no slot, which a caller passing
12370
+ * `requireProfileBound` can never see.
12371
+ */
12372
+ profile: CamProfileSchema.optional(),
12373
+ /** The broker id of that slot, for logs that must name what was dialled. */
12374
+ brokerId: string().optional(),
12375
+ /**
12376
+ * The broker restream URL to dial for this stream.
12377
+ *
12378
+ * An exporter must never open the camera's own URL — the broker is the one
12379
+ * that dials the camera, and every consumer goes through its restream. So
12380
+ * the picker answers with the thing a consumer may actually use, instead of
12381
+ * naming a source and leaving each caller to look the URL up.
12382
+ */
12383
+ url: string().optional(),
12384
+ /**
12385
+ * Frames per second this stream really delivers, and where the number came
12386
+ * from.
12387
+ *
12388
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12389
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12390
+ * and the controller rendered nothing at all. The source is carried with the
12391
+ * value for the same reason the bitrate evidence is: `published` is what the
12392
+ * publisher declares and `measured` is what the broker observed, and they
12393
+ * are not interchangeable.
12394
+ */
12395
+ fps: number().positive().optional(),
12396
+ fpsSource: _enum(["published", "measured"]).optional()
12345
12397
  });
12346
12398
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
12347
12399
  deviceId: number().int().nonnegative(),
package/dist/index.mjs CHANGED
@@ -12296,7 +12296,23 @@ var PickStreamRequirementsSchema = object({
12296
12296
  * This is what lets one picker serve both the bypass and the full source
12297
12297
  * choice, instead of a consumer scoring privately when the bypass misses.
12298
12298
  */
12299
- allowTranscode: boolean().optional()
12299
+ allowTranscode: boolean().optional(),
12300
+ /**
12301
+ * Consider ONLY streams the broker has bound to a profile slot.
12302
+ *
12303
+ * A consumer that dials the broker — which is every exporter, since none
12304
+ * of them may open the camera's own URL — can do nothing with a source
12305
+ * that has no slot: there is no restream to dial. Without this the picker
12306
+ * can name such a stream, and each consumer discovers the dead end for
12307
+ * itself: Alexa's `profileForCamStream` returns `null` and it quietly
12308
+ * falls back, and HomeKit would have had to grow the same function again.
12309
+ *
12310
+ * Default `false`, and deliberately so: the BROKER itself picks through
12311
+ * here when it decides which source to BIND to a slot
12312
+ * (`computeInitialAssignment`), and it must see the unbound ones or it
12313
+ * could never bind them.
12314
+ */
12315
+ requireProfileBound: boolean().optional()
12300
12316
  }).readonly();
12301
12317
  var PickStreamPreferencesSchema = object({
12302
12318
  /**
@@ -12337,7 +12353,43 @@ var PickedCamStreamSchema = object({
12337
12353
  */
12338
12354
  transcodes: boolean(),
12339
12355
  /** One-line explanation of why this stream won — for logs / debug UI. */
12340
- reason: string()
12356
+ reason: string(),
12357
+ /**
12358
+ * The broker profile slot this source is bound to, when it is bound.
12359
+ *
12360
+ * Answered HERE because every consumer needs it and none of them can get it
12361
+ * from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
12362
+ * a second cap read plus a `null` branch — and HomeKit was about to write
12363
+ * the same function a second time.
12364
+ *
12365
+ * Absent when the source has no slot, which a caller passing
12366
+ * `requireProfileBound` can never see.
12367
+ */
12368
+ profile: CamProfileSchema.optional(),
12369
+ /** The broker id of that slot, for logs that must name what was dialled. */
12370
+ brokerId: string().optional(),
12371
+ /**
12372
+ * The broker restream URL to dial for this stream.
12373
+ *
12374
+ * An exporter must never open the camera's own URL — the broker is the one
12375
+ * that dials the camera, and every consumer goes through its restream. So
12376
+ * the picker answers with the thing a consumer may actually use, instead of
12377
+ * naming a source and leaving each caller to look the URL up.
12378
+ */
12379
+ url: string().optional(),
12380
+ /**
12381
+ * Frames per second this stream really delivers, and where the number came
12382
+ * from.
12383
+ *
12384
+ * It is here because getting it wrong is expensive and silent: a HomeKit
12385
+ * accessory advertised 720p at 24 fps while the slot serving it ran at 9,
12386
+ * and the controller rendered nothing at all. The source is carried with the
12387
+ * value for the same reason the bitrate evidence is: `published` is what the
12388
+ * publisher declares and `measured` is what the broker observed, and they
12389
+ * are not interchangeable.
12390
+ */
12391
+ fps: number().positive().optional(),
12392
+ fpsSource: _enum(["published", "measured"]).optional()
12341
12393
  });
12342
12394
  DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
12343
12395
  deviceId: number().int().nonnegative(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-nodeav",
3
- "version": "1.2.107",
3
+ "version": "1.2.109",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",