@camstack/addon-provider-dreo 0.2.107 → 0.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/addon.js +54 -2
- package/dist/addon.mjs +54 -2
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -12328,7 +12328,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12328
12328
|
* This is what lets one picker serve both the bypass and the full source
|
|
12329
12329
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12330
12330
|
*/
|
|
12331
|
-
allowTranscode: boolean().optional()
|
|
12331
|
+
allowTranscode: boolean().optional(),
|
|
12332
|
+
/**
|
|
12333
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12334
|
+
*
|
|
12335
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12336
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12337
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12338
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12339
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12340
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12341
|
+
*
|
|
12342
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12343
|
+
* here when it decides which source to BIND to a slot
|
|
12344
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12345
|
+
* could never bind them.
|
|
12346
|
+
*/
|
|
12347
|
+
requireProfileBound: boolean().optional()
|
|
12332
12348
|
}).readonly();
|
|
12333
12349
|
var PickStreamPreferencesSchema = object({
|
|
12334
12350
|
/**
|
|
@@ -12369,7 +12385,43 @@ var PickedCamStreamSchema = object({
|
|
|
12369
12385
|
*/
|
|
12370
12386
|
transcodes: boolean(),
|
|
12371
12387
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12372
|
-
reason: string()
|
|
12388
|
+
reason: string(),
|
|
12389
|
+
/**
|
|
12390
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12391
|
+
*
|
|
12392
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12393
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12394
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12395
|
+
* the same function a second time.
|
|
12396
|
+
*
|
|
12397
|
+
* Absent when the source has no slot, which a caller passing
|
|
12398
|
+
* `requireProfileBound` can never see.
|
|
12399
|
+
*/
|
|
12400
|
+
profile: CamProfileSchema.optional(),
|
|
12401
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12402
|
+
brokerId: string().optional(),
|
|
12403
|
+
/**
|
|
12404
|
+
* The broker restream URL to dial for this stream.
|
|
12405
|
+
*
|
|
12406
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12407
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12408
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12409
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12410
|
+
*/
|
|
12411
|
+
url: string().optional(),
|
|
12412
|
+
/**
|
|
12413
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12414
|
+
* from.
|
|
12415
|
+
*
|
|
12416
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12417
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12418
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12419
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12420
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12421
|
+
* are not interchangeable.
|
|
12422
|
+
*/
|
|
12423
|
+
fps: number().positive().optional(),
|
|
12424
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12373
12425
|
});
|
|
12374
12426
|
/**
|
|
12375
12427
|
* Camera streams — device-scoped facade over the system `stream-broker`.
|
package/dist/addon.mjs
CHANGED
|
@@ -12329,7 +12329,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12329
12329
|
* This is what lets one picker serve both the bypass and the full source
|
|
12330
12330
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12331
12331
|
*/
|
|
12332
|
-
allowTranscode: boolean().optional()
|
|
12332
|
+
allowTranscode: boolean().optional(),
|
|
12333
|
+
/**
|
|
12334
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12335
|
+
*
|
|
12336
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12337
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12338
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12339
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12340
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12341
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12342
|
+
*
|
|
12343
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12344
|
+
* here when it decides which source to BIND to a slot
|
|
12345
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12346
|
+
* could never bind them.
|
|
12347
|
+
*/
|
|
12348
|
+
requireProfileBound: boolean().optional()
|
|
12333
12349
|
}).readonly();
|
|
12334
12350
|
var PickStreamPreferencesSchema = object({
|
|
12335
12351
|
/**
|
|
@@ -12370,7 +12386,43 @@ var PickedCamStreamSchema = object({
|
|
|
12370
12386
|
*/
|
|
12371
12387
|
transcodes: boolean(),
|
|
12372
12388
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12373
|
-
reason: string()
|
|
12389
|
+
reason: string(),
|
|
12390
|
+
/**
|
|
12391
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12392
|
+
*
|
|
12393
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12394
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12395
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12396
|
+
* the same function a second time.
|
|
12397
|
+
*
|
|
12398
|
+
* Absent when the source has no slot, which a caller passing
|
|
12399
|
+
* `requireProfileBound` can never see.
|
|
12400
|
+
*/
|
|
12401
|
+
profile: CamProfileSchema.optional(),
|
|
12402
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12403
|
+
brokerId: string().optional(),
|
|
12404
|
+
/**
|
|
12405
|
+
* The broker restream URL to dial for this stream.
|
|
12406
|
+
*
|
|
12407
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12408
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12409
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12410
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12411
|
+
*/
|
|
12412
|
+
url: string().optional(),
|
|
12413
|
+
/**
|
|
12414
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12415
|
+
* from.
|
|
12416
|
+
*
|
|
12417
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12418
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12419
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12420
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12421
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12422
|
+
* are not interchangeable.
|
|
12423
|
+
*/
|
|
12424
|
+
fps: number().positive().optional(),
|
|
12425
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12374
12426
|
});
|
|
12375
12427
|
/**
|
|
12376
12428
|
* Camera streams — device-scoped facade over the system `stream-broker`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreo",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.109",
|
|
4
4
|
"description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|