@apocaliss92/scrypted-reolink-native 0.2.5 → 0.2.6
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 +11 -1
package/dist/plugin.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/camera.ts
CHANGED
|
@@ -2698,6 +2698,16 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
|
|
|
2698
2698
|
this.storageSettings.settings.clipsSource.hide = !this.nvrDevice;
|
|
2699
2699
|
this.storageSettings.settings.clipsSource.defaultValue = this.nvrDevice ? "NVR" : "Device";
|
|
2700
2700
|
|
|
2701
|
+
// if (!!this.multiFocalDevice) {
|
|
2702
|
+
// const allSettingKeys = Object.keys(this.storageSettings.settings);
|
|
2703
|
+
|
|
2704
|
+
// for (const key of allSettingKeys) {
|
|
2705
|
+
// const setting = this.storageSettings.settings[key];
|
|
2706
|
+
// if (['Videoclips', 'PTZ'].includes(setting.subgroup)) {
|
|
2707
|
+
// setting.hide = true;
|
|
2708
|
+
// }
|
|
2709
|
+
// }
|
|
2710
|
+
// }
|
|
2701
2711
|
this.storageSettings.settings.enableVideoclips.hide = !!this.multiFocalDevice;
|
|
2702
2712
|
this.storageSettings.settings.videoclipsDaysToPreload.hide = !!this.multiFocalDevice;
|
|
2703
2713
|
this.storageSettings.settings.videoclipsRegularChecks.hide = !!this.multiFocalDevice;
|
|
@@ -2753,7 +2763,7 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
|
|
|
2753
2763
|
this.intercom = new ReolinkBaichuanIntercom(this);
|
|
2754
2764
|
}
|
|
2755
2765
|
|
|
2756
|
-
if (hasPtz) {
|
|
2766
|
+
if (hasPtz && !this.multiFocalDevice) {
|
|
2757
2767
|
const choices = (this.presets || []).map((preset: any) => preset.id + '=' + preset.name);
|
|
2758
2768
|
|
|
2759
2769
|
this.storageSettings.settings.presets.choices = choices;
|