@camstack/addon-terminal 0.1.112 → 0.1.113
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/addon.js +54 -2
- package/dist/addon.mjs +54 -2
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -12391,7 +12391,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12391
12391
|
* This is what lets one picker serve both the bypass and the full source
|
|
12392
12392
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12393
12393
|
*/
|
|
12394
|
-
allowTranscode: boolean().optional()
|
|
12394
|
+
allowTranscode: boolean().optional(),
|
|
12395
|
+
/**
|
|
12396
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12397
|
+
*
|
|
12398
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12399
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12400
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12401
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12402
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12403
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12404
|
+
*
|
|
12405
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12406
|
+
* here when it decides which source to BIND to a slot
|
|
12407
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12408
|
+
* could never bind them.
|
|
12409
|
+
*/
|
|
12410
|
+
requireProfileBound: boolean().optional()
|
|
12395
12411
|
}).readonly();
|
|
12396
12412
|
var PickStreamPreferencesSchema = object({
|
|
12397
12413
|
/**
|
|
@@ -12432,7 +12448,43 @@ var PickedCamStreamSchema = object({
|
|
|
12432
12448
|
*/
|
|
12433
12449
|
transcodes: boolean(),
|
|
12434
12450
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12435
|
-
reason: string()
|
|
12451
|
+
reason: string(),
|
|
12452
|
+
/**
|
|
12453
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12454
|
+
*
|
|
12455
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12456
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12457
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12458
|
+
* the same function a second time.
|
|
12459
|
+
*
|
|
12460
|
+
* Absent when the source has no slot, which a caller passing
|
|
12461
|
+
* `requireProfileBound` can never see.
|
|
12462
|
+
*/
|
|
12463
|
+
profile: CamProfileSchema.optional(),
|
|
12464
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12465
|
+
brokerId: string().optional(),
|
|
12466
|
+
/**
|
|
12467
|
+
* The broker restream URL to dial for this stream.
|
|
12468
|
+
*
|
|
12469
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12470
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12471
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12472
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12473
|
+
*/
|
|
12474
|
+
url: string().optional(),
|
|
12475
|
+
/**
|
|
12476
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12477
|
+
* from.
|
|
12478
|
+
*
|
|
12479
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12480
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12481
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12482
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12483
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12484
|
+
* are not interchangeable.
|
|
12485
|
+
*/
|
|
12486
|
+
fps: number().positive().optional(),
|
|
12487
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12436
12488
|
});
|
|
12437
12489
|
/**
|
|
12438
12490
|
* Camera streams — device-scoped facade over the system `stream-broker`.
|
package/dist/addon.mjs
CHANGED
|
@@ -12368,7 +12368,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12368
12368
|
* This is what lets one picker serve both the bypass and the full source
|
|
12369
12369
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12370
12370
|
*/
|
|
12371
|
-
allowTranscode: boolean().optional()
|
|
12371
|
+
allowTranscode: boolean().optional(),
|
|
12372
|
+
/**
|
|
12373
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12374
|
+
*
|
|
12375
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12376
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12377
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12378
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12379
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12380
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12381
|
+
*
|
|
12382
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12383
|
+
* here when it decides which source to BIND to a slot
|
|
12384
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12385
|
+
* could never bind them.
|
|
12386
|
+
*/
|
|
12387
|
+
requireProfileBound: boolean().optional()
|
|
12372
12388
|
}).readonly();
|
|
12373
12389
|
var PickStreamPreferencesSchema = object({
|
|
12374
12390
|
/**
|
|
@@ -12409,7 +12425,43 @@ var PickedCamStreamSchema = object({
|
|
|
12409
12425
|
*/
|
|
12410
12426
|
transcodes: boolean(),
|
|
12411
12427
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12412
|
-
reason: string()
|
|
12428
|
+
reason: string(),
|
|
12429
|
+
/**
|
|
12430
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12431
|
+
*
|
|
12432
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12433
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12434
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12435
|
+
* the same function a second time.
|
|
12436
|
+
*
|
|
12437
|
+
* Absent when the source has no slot, which a caller passing
|
|
12438
|
+
* `requireProfileBound` can never see.
|
|
12439
|
+
*/
|
|
12440
|
+
profile: CamProfileSchema.optional(),
|
|
12441
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12442
|
+
brokerId: string().optional(),
|
|
12443
|
+
/**
|
|
12444
|
+
* The broker restream URL to dial for this stream.
|
|
12445
|
+
*
|
|
12446
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12447
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12448
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12449
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12450
|
+
*/
|
|
12451
|
+
url: string().optional(),
|
|
12452
|
+
/**
|
|
12453
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12454
|
+
* from.
|
|
12455
|
+
*
|
|
12456
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12457
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12458
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12459
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12460
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12461
|
+
* are not interchangeable.
|
|
12462
|
+
*/
|
|
12463
|
+
fps: number().positive().optional(),
|
|
12464
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12413
12465
|
});
|
|
12414
12466
|
/**
|
|
12415
12467
|
* Camera streams — device-scoped facade over the system `stream-broker`.
|