@apocaliss92/scrypted-reolink-native 0.2.6 → 0.2.7
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/main.nodejs.js +1 -1
- package/dist/plugin.zip +0 -0
- package/package.json +1 -1
- package/src/camera.ts +19 -6
package/dist/plugin.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/camera.ts
CHANGED
|
@@ -207,6 +207,7 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
|
|
|
207
207
|
// Basic connection settings
|
|
208
208
|
ipAddress: {
|
|
209
209
|
title: 'IP Address',
|
|
210
|
+
hide: true,
|
|
210
211
|
type: 'string',
|
|
211
212
|
onPut: async () => {
|
|
212
213
|
await this.credentialsChanged();
|
|
@@ -214,6 +215,7 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
|
|
|
214
215
|
},
|
|
215
216
|
username: {
|
|
216
217
|
type: 'string',
|
|
218
|
+
hide: true,
|
|
217
219
|
title: 'Username',
|
|
218
220
|
onPut: async () => {
|
|
219
221
|
await this.credentialsChanged();
|
|
@@ -221,6 +223,7 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
|
|
|
221
223
|
},
|
|
222
224
|
password: {
|
|
223
225
|
type: 'password',
|
|
226
|
+
hide: true,
|
|
224
227
|
title: 'Password',
|
|
225
228
|
onPut: async () => {
|
|
226
229
|
await this.credentialsChanged();
|
|
@@ -2538,11 +2541,20 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
|
|
|
2538
2541
|
// Extract variant from stream ID or URL if present (e.g., "autotrack" from "native_autotrack_main" or "?variant=autotrack")
|
|
2539
2542
|
let variant = extractVariantFromStreamId(selected.id, selected.url);
|
|
2540
2543
|
|
|
2541
|
-
// Fallback: if no variant found in stream ID/URL, use variantType from device settings
|
|
2542
|
-
//
|
|
2544
|
+
// Fallback: if no variant found in stream ID/URL, use variantType from device settings.
|
|
2545
|
+
// IMPORTANT:
|
|
2546
|
+
// - On NVR/Hub multifocal setups, the tele lens is often selected via a variant (autotrack/telephoto) on the same channel.
|
|
2547
|
+
// - On standalone TrackMix (no NVR), the tele lens is selected via channel=1 (no variant).
|
|
2548
|
+
// Forcing a variant on standalone can result in a started stream with no frames.
|
|
2543
2549
|
if (!variant && this.storageSettings.values.variantType && this.storageSettings.values.variantType !== 'default') {
|
|
2544
|
-
|
|
2545
|
-
|
|
2550
|
+
if (this.isOnNvr) {
|
|
2551
|
+
variant = this.storageSettings.values.variantType as 'autotrack' | 'telephoto';
|
|
2552
|
+
logger.log(`Using variant from device settings: '${variant}' (not found in stream ID/URL)`);
|
|
2553
|
+
} else {
|
|
2554
|
+
logger.log(
|
|
2555
|
+
`Ignoring device variantType '${this.storageSettings.values.variantType}' for standalone stream (channel-based lens selection)`
|
|
2556
|
+
);
|
|
2557
|
+
}
|
|
2546
2558
|
}
|
|
2547
2559
|
|
|
2548
2560
|
logger.log(`Stream selection: id='${selected.id}', profile='${profile}', channel=${channel}, variant='${variant || 'default'}'`);
|
|
@@ -2725,8 +2737,9 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
|
|
|
2725
2737
|
this.storageSettings.settings.pipSize.hide = !this.isMultiFocal;
|
|
2726
2738
|
this.storageSettings.settings.pipMargin.hide = !this.isMultiFocal;
|
|
2727
2739
|
|
|
2728
|
-
|
|
2729
|
-
this.storageSettings.settings.
|
|
2740
|
+
const hideUid = !this.isBattery || this.isOnNvr || !!this.multiFocalDevice
|
|
2741
|
+
this.storageSettings.settings.uid.hide = hideUid;
|
|
2742
|
+
this.storageSettings.settings.discoveryMethod.hide = hideUid;
|
|
2730
2743
|
|
|
2731
2744
|
if (this.isBattery && !this.storageSettings.values.mixinsSetup) {
|
|
2732
2745
|
try {
|