@camstack/addon-decoder-ffmpeg 1.2.69 → 1.2.70
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 +41 -1
- package/dist/index.mjs +41 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
|
|
|
4
4
|
});
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let node_child_process = require("node:child_process");
|
|
7
|
-
//#region ../types/dist/event-category-
|
|
7
|
+
//#region ../types/dist/event-category-zAv7pMUz.mjs
|
|
8
8
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
9
9
|
EventCategory["SystemBoot"] = "system.boot";
|
|
10
10
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -376,6 +376,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
376
376
|
*/
|
|
377
377
|
EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
|
|
378
378
|
/**
|
|
379
|
+
* Cap event fired by every device that registers the `network-link`
|
|
380
|
+
* capability. Mirrors the cap definition's `onStatusChanged`. Carries
|
|
381
|
+
* `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
|
|
382
|
+
* reading that moved.
|
|
383
|
+
*/
|
|
384
|
+
EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
|
|
385
|
+
/**
|
|
379
386
|
* Emitted by the battery cap provider WHEN `wakeForStream` enters the
|
|
380
387
|
* "wake in progress" window — between the Baichuan wake-up issue and
|
|
381
388
|
* the camera's first dialed-back RTP packet. The stream-broker
|
|
@@ -23312,6 +23319,39 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, meth
|
|
|
23312
23319
|
deviceId: number(),
|
|
23313
23320
|
status: BatteryStatusSchema
|
|
23314
23321
|
});
|
|
23322
|
+
/**
|
|
23323
|
+
* Network-link snapshot. Same shape for every provider (a Reolink wifi
|
|
23324
|
+
* camera, a Home Assistant device with a signal-strength sensor, a Tapo
|
|
23325
|
+
* plug): one slice under `device.runtimeState['network-link']`, one badge,
|
|
23326
|
+
* one Home Assistant projection.
|
|
23327
|
+
*/
|
|
23328
|
+
var NetworkLinkStatusSchema = object({
|
|
23329
|
+
/** The link the device is on. `'unknown'` = not read yet, not "no link". */
|
|
23330
|
+
type: _enum([
|
|
23331
|
+
"wifi",
|
|
23332
|
+
"ethernet",
|
|
23333
|
+
"cellular",
|
|
23334
|
+
"unknown"
|
|
23335
|
+
]),
|
|
23336
|
+
/**
|
|
23337
|
+
* Link quality, 0..100 inclusive, normalised by the provider from whatever
|
|
23338
|
+
* the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
|
|
23339
|
+
* KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
|
|
23340
|
+
* one whose reading has not landed must not be drawn at 0 %. Consumers
|
|
23341
|
+
* SKIP a null rather than coerce it.
|
|
23342
|
+
*/
|
|
23343
|
+
signalPercent: number().min(0).max(100).nullable(),
|
|
23344
|
+
/** Raw received signal strength in dBm, when the firmware reports one. */
|
|
23345
|
+
rssiDbm: number().optional(),
|
|
23346
|
+
/** Network name of a wireless link, when the firmware reports it. */
|
|
23347
|
+
ssid: string().optional(),
|
|
23348
|
+
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
23349
|
+
lastUpdated: number()
|
|
23350
|
+
});
|
|
23351
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
|
|
23352
|
+
deviceId: number(),
|
|
23353
|
+
status: NetworkLinkStatusSchema
|
|
23354
|
+
});
|
|
23315
23355
|
object({
|
|
23316
23356
|
on: boolean(),
|
|
23317
23357
|
/** Ms epoch of the last transition. 0 if never observed. */
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
2
|
import { spawn } from "node:child_process";
|
|
3
|
-
//#region ../types/dist/event-category-
|
|
3
|
+
//#region ../types/dist/event-category-zAv7pMUz.mjs
|
|
4
4
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
5
5
|
EventCategory["SystemBoot"] = "system.boot";
|
|
6
6
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -372,6 +372,13 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
372
372
|
*/
|
|
373
373
|
EventCategory["BatteryOnStatusChanged"] = "battery.onStatusChanged";
|
|
374
374
|
/**
|
|
375
|
+
* Cap event fired by every device that registers the `network-link`
|
|
376
|
+
* capability. Mirrors the cap definition's `onStatusChanged`. Carries
|
|
377
|
+
* `{ deviceId, status: NetworkLinkStatus }` — a link switch or a signal
|
|
378
|
+
* reading that moved.
|
|
379
|
+
*/
|
|
380
|
+
EventCategory["NetworkLinkOnStatusChanged"] = "network-link.onStatusChanged";
|
|
381
|
+
/**
|
|
375
382
|
* Emitted by the battery cap provider WHEN `wakeForStream` enters the
|
|
376
383
|
* "wake in progress" window — between the Baichuan wake-up issue and
|
|
377
384
|
* the camera's first dialed-back RTP packet. The stream-broker
|
|
@@ -23308,6 +23315,39 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, meth
|
|
|
23308
23315
|
deviceId: number(),
|
|
23309
23316
|
status: BatteryStatusSchema
|
|
23310
23317
|
});
|
|
23318
|
+
/**
|
|
23319
|
+
* Network-link snapshot. Same shape for every provider (a Reolink wifi
|
|
23320
|
+
* camera, a Home Assistant device with a signal-strength sensor, a Tapo
|
|
23321
|
+
* plug): one slice under `device.runtimeState['network-link']`, one badge,
|
|
23322
|
+
* one Home Assistant projection.
|
|
23323
|
+
*/
|
|
23324
|
+
var NetworkLinkStatusSchema = object({
|
|
23325
|
+
/** The link the device is on. `'unknown'` = not read yet, not "no link". */
|
|
23326
|
+
type: _enum([
|
|
23327
|
+
"wifi",
|
|
23328
|
+
"ethernet",
|
|
23329
|
+
"cellular",
|
|
23330
|
+
"unknown"
|
|
23331
|
+
]),
|
|
23332
|
+
/**
|
|
23333
|
+
* Link quality, 0..100 inclusive, normalised by the provider from whatever
|
|
23334
|
+
* the firmware reports (bars, RSSI, a vendor scale). **`null` means NOT
|
|
23335
|
+
* KNOWN or NOT APPLICABLE** — a wired link has no signal, and a wireless
|
|
23336
|
+
* one whose reading has not landed must not be drawn at 0 %. Consumers
|
|
23337
|
+
* SKIP a null rather than coerce it.
|
|
23338
|
+
*/
|
|
23339
|
+
signalPercent: number().min(0).max(100).nullable(),
|
|
23340
|
+
/** Raw received signal strength in dBm, when the firmware reports one. */
|
|
23341
|
+
rssiDbm: number().optional(),
|
|
23342
|
+
/** Network name of a wireless link, when the firmware reports it. */
|
|
23343
|
+
ssid: string().optional(),
|
|
23344
|
+
/** Ms epoch of the last observation. Lets consumers reason about freshness. */
|
|
23345
|
+
lastUpdated: number()
|
|
23346
|
+
});
|
|
23347
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.Light, DeviceType.Lock, DeviceType.Siren, object({
|
|
23348
|
+
deviceId: number(),
|
|
23349
|
+
status: NetworkLinkStatusSchema
|
|
23350
|
+
});
|
|
23311
23351
|
object({
|
|
23312
23352
|
on: boolean(),
|
|
23313
23353
|
/** Ms epoch of the last transition. 0 if never observed. */
|