@camstack/addon-provider-hikvision 1.2.115 → 1.2.117
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
|
@@ -12580,7 +12580,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12580
12580
|
* This is what lets one picker serve both the bypass and the full source
|
|
12581
12581
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12582
12582
|
*/
|
|
12583
|
-
allowTranscode: boolean().optional()
|
|
12583
|
+
allowTranscode: boolean().optional(),
|
|
12584
|
+
/**
|
|
12585
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12586
|
+
*
|
|
12587
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12588
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12589
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12590
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12591
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12592
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12593
|
+
*
|
|
12594
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12595
|
+
* here when it decides which source to BIND to a slot
|
|
12596
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12597
|
+
* could never bind them.
|
|
12598
|
+
*/
|
|
12599
|
+
requireProfileBound: boolean().optional()
|
|
12584
12600
|
}).readonly();
|
|
12585
12601
|
var PickStreamPreferencesSchema = object({
|
|
12586
12602
|
/**
|
|
@@ -12621,7 +12637,43 @@ var PickedCamStreamSchema = object({
|
|
|
12621
12637
|
*/
|
|
12622
12638
|
transcodes: boolean(),
|
|
12623
12639
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12624
|
-
reason: string()
|
|
12640
|
+
reason: string(),
|
|
12641
|
+
/**
|
|
12642
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12643
|
+
*
|
|
12644
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12645
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12646
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12647
|
+
* the same function a second time.
|
|
12648
|
+
*
|
|
12649
|
+
* Absent when the source has no slot, which a caller passing
|
|
12650
|
+
* `requireProfileBound` can never see.
|
|
12651
|
+
*/
|
|
12652
|
+
profile: CamProfileSchema.optional(),
|
|
12653
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12654
|
+
brokerId: string().optional(),
|
|
12655
|
+
/**
|
|
12656
|
+
* The broker restream URL to dial for this stream.
|
|
12657
|
+
*
|
|
12658
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12659
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12660
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12661
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12662
|
+
*/
|
|
12663
|
+
url: string().optional(),
|
|
12664
|
+
/**
|
|
12665
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12666
|
+
* from.
|
|
12667
|
+
*
|
|
12668
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12669
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12670
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12671
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12672
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12673
|
+
* are not interchangeable.
|
|
12674
|
+
*/
|
|
12675
|
+
fps: number().positive().optional(),
|
|
12676
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12625
12677
|
});
|
|
12626
12678
|
/**
|
|
12627
12679
|
* Camera streams — device-scoped facade over the system `stream-broker`.
|
package/dist/addon.mjs
CHANGED
|
@@ -12581,7 +12581,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12581
12581
|
* This is what lets one picker serve both the bypass and the full source
|
|
12582
12582
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12583
12583
|
*/
|
|
12584
|
-
allowTranscode: boolean().optional()
|
|
12584
|
+
allowTranscode: boolean().optional(),
|
|
12585
|
+
/**
|
|
12586
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12587
|
+
*
|
|
12588
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12589
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12590
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12591
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12592
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12593
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12594
|
+
*
|
|
12595
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12596
|
+
* here when it decides which source to BIND to a slot
|
|
12597
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12598
|
+
* could never bind them.
|
|
12599
|
+
*/
|
|
12600
|
+
requireProfileBound: boolean().optional()
|
|
12585
12601
|
}).readonly();
|
|
12586
12602
|
var PickStreamPreferencesSchema = object({
|
|
12587
12603
|
/**
|
|
@@ -12622,7 +12638,43 @@ var PickedCamStreamSchema = object({
|
|
|
12622
12638
|
*/
|
|
12623
12639
|
transcodes: boolean(),
|
|
12624
12640
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12625
|
-
reason: string()
|
|
12641
|
+
reason: string(),
|
|
12642
|
+
/**
|
|
12643
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12644
|
+
*
|
|
12645
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12646
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12647
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12648
|
+
* the same function a second time.
|
|
12649
|
+
*
|
|
12650
|
+
* Absent when the source has no slot, which a caller passing
|
|
12651
|
+
* `requireProfileBound` can never see.
|
|
12652
|
+
*/
|
|
12653
|
+
profile: CamProfileSchema.optional(),
|
|
12654
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12655
|
+
brokerId: string().optional(),
|
|
12656
|
+
/**
|
|
12657
|
+
* The broker restream URL to dial for this stream.
|
|
12658
|
+
*
|
|
12659
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12660
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12661
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12662
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12663
|
+
*/
|
|
12664
|
+
url: string().optional(),
|
|
12665
|
+
/**
|
|
12666
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12667
|
+
* from.
|
|
12668
|
+
*
|
|
12669
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12670
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12671
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12672
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12673
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12674
|
+
* are not interchangeable.
|
|
12675
|
+
*/
|
|
12676
|
+
fps: number().positive().optional(),
|
|
12677
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12626
12678
|
});
|
|
12627
12679
|
/**
|
|
12628
12680
|
* 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-hikvision",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.117",
|
|
4
4
|
"description": "Hikvision camera device provider addon for CamStack — ISAPI over HTTP(S) with digest auth (snapshot, alarm stream, RTSP discovery)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|