@camstack/addon-provider-reolink 1.2.256 → 1.2.257

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 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.257] - 2026-11-21
11
+
12
+ ### Changed
13
+
14
+ - Battery cameras whose web server is off no longer offer an FLV stream in the stream selection
15
+
10
16
  ## [1.2.256] - 2026-11-21
11
17
 
12
18
  ### Fixed
package/dist/addon.js CHANGED
@@ -235154,6 +235154,13 @@ var resolveZoomStep = (travel, zoom) => {
235154
235154
  target
235155
235155
  };
235156
235156
  };
235157
+ //#endregion
235158
+ //#region src/flv-eligibility.ts
235159
+ function cameraServesFlv(evidence) {
235160
+ const httpEnabled = evidence.netPortSnapshot?.http?.enable;
235161
+ if (httpEnabled !== void 0) return httpEnabled;
235162
+ return !evidence.isBattery;
235163
+ }
235157
235164
  var CONNECTIVITY_CODES = new Set([
235158
235165
  "EHOSTUNREACH",
235159
235166
  "EHOSTDOWN",
@@ -241037,7 +241044,11 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
241037
241044
  };
241038
241045
  enqueueAlt("rtsp", streamOptions.rtspStreams);
241039
241046
  enqueueAlt("rtmp", streamOptions.rtmpStreams);
241040
- for (const s of streamOptions.nativeStreams) {
241047
+ const flvServed = cameraServesFlv({
241048
+ isBattery: this.isBattery,
241049
+ netPortSnapshot: this.config.get("deviceCache")?.netPortSnapshot
241050
+ });
241051
+ for (const s of flvServed ? streamOptions.nativeStreams : []) {
241041
241052
  const channel = s.channel ?? (isChild ? ownChannel : 0);
241042
241053
  const id = buildCamStreamId("flv", channel, s.profile, channelCount);
241043
241054
  if (desired.has(id)) continue;
package/dist/addon.mjs CHANGED
@@ -235146,6 +235146,13 @@ var resolveZoomStep = (travel, zoom) => {
235146
235146
  target
235147
235147
  };
235148
235148
  };
235149
+ //#endregion
235150
+ //#region src/flv-eligibility.ts
235151
+ function cameraServesFlv(evidence) {
235152
+ const httpEnabled = evidence.netPortSnapshot?.http?.enable;
235153
+ if (httpEnabled !== void 0) return httpEnabled;
235154
+ return !evidence.isBattery;
235155
+ }
235149
235156
  var CONNECTIVITY_CODES = new Set([
235150
235157
  "EHOSTUNREACH",
235151
235158
  "EHOSTDOWN",
@@ -241029,7 +241036,11 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
241029
241036
  };
241030
241037
  enqueueAlt("rtsp", streamOptions.rtspStreams);
241031
241038
  enqueueAlt("rtmp", streamOptions.rtmpStreams);
241032
- for (const s of streamOptions.nativeStreams) {
241039
+ const flvServed = cameraServesFlv({
241040
+ isBattery: this.isBattery,
241041
+ netPortSnapshot: this.config.get("deviceCache")?.netPortSnapshot
241042
+ });
241043
+ for (const s of flvServed ? streamOptions.nativeStreams : []) {
241033
241044
  const channel = s.channel ?? (isChild ? ownChannel : 0);
241034
241045
  const id = buildCamStreamId("flv", channel, s.profile, channelCount);
241035
241046
  if (desired.has(id)) continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-reolink",
3
- "version": "1.2.256",
3
+ "version": "1.2.257",
4
4
  "description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
5
5
  "keywords": [
6
6
  "camstack",
@@ -96,7 +96,7 @@
96
96
  "werift"
97
97
  ],
98
98
  "requires": {
99
- "server": ">=1.2.927"
99
+ "server": ">=1.2.928"
100
100
  }
101
101
  },
102
102
  "files": [