@camstack/addon-provider-reolink 1.2.250 → 1.2.251
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/CHANGELOG.md +6 -0
- package/dist/addon.js +0 -23
- package/dist/addon.mjs +0 -23
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.251] - 2026-11-20
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Reverted the 'sleep push ignored while streaming' change: a camera that really slept kept a dead stream open and live view could not start.
|
|
15
|
+
|
|
10
16
|
## [1.2.250] - 2026-11-20
|
|
11
17
|
|
|
12
18
|
### Changed
|
package/dist/addon.js
CHANGED
|
@@ -231081,16 +231081,6 @@ function decideSleepCommit(input) {
|
|
|
231081
231081
|
stampFirstHand: source !== "hub-reconcile"
|
|
231082
231082
|
};
|
|
231083
231083
|
}
|
|
231084
|
-
/**
|
|
231085
|
-
* A firmware `sleeping` push is ignored while a consumer (the recorder,
|
|
231086
|
-
* a live view) holds an RFC 4571 server on the camera. Teardown on that
|
|
231087
|
-
* push is what cut a recorded battery camera into 40–110 s gaps: the
|
|
231088
|
-
* broker only re-dialled ~20 s after we closed the stream. With no
|
|
231089
|
-
* consumer the push is acted on exactly as before.
|
|
231090
|
-
*/
|
|
231091
|
-
function shouldIgnoreSleepPush(input) {
|
|
231092
|
-
return input.activeStreams > 0;
|
|
231093
|
-
}
|
|
231094
231084
|
//#endregion
|
|
231095
231085
|
//#region src/snapshot-wake-gate.ts
|
|
231096
231086
|
/**
|
|
@@ -234804,8 +234794,6 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
|
|
|
234804
234794
|
* `sleep-state-decision.ts` for the measurement (D603).
|
|
234805
234795
|
*/
|
|
234806
234796
|
sleepStateChangedAt = 0;
|
|
234807
|
-
/** True once the 'sleep push ignored' line was logged for the current consumer-attached stretch. */
|
|
234808
|
-
sleepPushIgnoreLogged = false;
|
|
234809
234797
|
/**
|
|
234810
234798
|
* Wall-clock ms of the last PROACTIVE wake — one we issued on our own
|
|
234811
234799
|
* initiative (background snapshot refresh), not because the operator
|
|
@@ -242325,17 +242313,6 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
|
|
|
242325
242313
|
return;
|
|
242326
242314
|
}
|
|
242327
242315
|
if (event.type === "sleeping") {
|
|
242328
|
-
if (this.isBattery && shouldIgnoreSleepPush({ activeStreams: this.active.size })) {
|
|
242329
|
-
if (!this.sleepPushIgnoreLogged) {
|
|
242330
|
-
this.sleepPushIgnoreLogged = true;
|
|
242331
|
-
this.ctx.logger.info(`sleep push ignored: ${this.active.size} active stream consumer(s)`, {
|
|
242332
|
-
tags: { deviceId: this.id },
|
|
242333
|
-
meta: { activeStreams: this.active.size }
|
|
242334
|
-
});
|
|
242335
|
-
}
|
|
242336
|
-
return;
|
|
242337
|
-
}
|
|
242338
|
-
this.sleepPushIgnoreLogged = false;
|
|
242339
242316
|
const wasSleeping = this.sleeping;
|
|
242340
242317
|
if (!this.commitSleepState(true, "simple-event")) return;
|
|
242341
242318
|
if (!wasSleeping) this.ctx.eventBus.emit(createEvent(EventCategory.DeviceSleeping, eventSource, {
|
package/dist/addon.mjs
CHANGED
|
@@ -231073,16 +231073,6 @@ function decideSleepCommit(input) {
|
|
|
231073
231073
|
stampFirstHand: source !== "hub-reconcile"
|
|
231074
231074
|
};
|
|
231075
231075
|
}
|
|
231076
|
-
/**
|
|
231077
|
-
* A firmware `sleeping` push is ignored while a consumer (the recorder,
|
|
231078
|
-
* a live view) holds an RFC 4571 server on the camera. Teardown on that
|
|
231079
|
-
* push is what cut a recorded battery camera into 40–110 s gaps: the
|
|
231080
|
-
* broker only re-dialled ~20 s after we closed the stream. With no
|
|
231081
|
-
* consumer the push is acted on exactly as before.
|
|
231082
|
-
*/
|
|
231083
|
-
function shouldIgnoreSleepPush(input) {
|
|
231084
|
-
return input.activeStreams > 0;
|
|
231085
|
-
}
|
|
231086
231076
|
//#endregion
|
|
231087
231077
|
//#region src/snapshot-wake-gate.ts
|
|
231088
231078
|
/**
|
|
@@ -234796,8 +234786,6 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
|
|
|
234796
234786
|
* `sleep-state-decision.ts` for the measurement (D603).
|
|
234797
234787
|
*/
|
|
234798
234788
|
sleepStateChangedAt = 0;
|
|
234799
|
-
/** True once the 'sleep push ignored' line was logged for the current consumer-attached stretch. */
|
|
234800
|
-
sleepPushIgnoreLogged = false;
|
|
234801
234789
|
/**
|
|
234802
234790
|
* Wall-clock ms of the last PROACTIVE wake — one we issued on our own
|
|
234803
234791
|
* initiative (background snapshot refresh), not because the operator
|
|
@@ -242317,17 +242305,6 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
|
|
|
242317
242305
|
return;
|
|
242318
242306
|
}
|
|
242319
242307
|
if (event.type === "sleeping") {
|
|
242320
|
-
if (this.isBattery && shouldIgnoreSleepPush({ activeStreams: this.active.size })) {
|
|
242321
|
-
if (!this.sleepPushIgnoreLogged) {
|
|
242322
|
-
this.sleepPushIgnoreLogged = true;
|
|
242323
|
-
this.ctx.logger.info(`sleep push ignored: ${this.active.size} active stream consumer(s)`, {
|
|
242324
|
-
tags: { deviceId: this.id },
|
|
242325
|
-
meta: { activeStreams: this.active.size }
|
|
242326
|
-
});
|
|
242327
|
-
}
|
|
242328
|
-
return;
|
|
242329
|
-
}
|
|
242330
|
-
this.sleepPushIgnoreLogged = false;
|
|
242331
242308
|
const wasSleeping = this.sleeping;
|
|
242332
242309
|
if (!this.commitSleepState(true, "simple-event")) return;
|
|
242333
242310
|
if (!wasSleeping) this.ctx.eventBus.emit(createEvent(EventCategory.DeviceSleeping, eventSource, {
|