@apocaliss92/scrypted-reolink-native 0.3.14 → 0.3.15
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 -0
package/dist/plugin.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/camera.ts
CHANGED
|
@@ -2794,11 +2794,22 @@ export class ReolinkCamera extends BaseBaichuanClass implements VideoCamera, Cam
|
|
|
2794
2794
|
this.storageSettings.settings.username.defaultValue = parentDevice.storageSettings.values.username;
|
|
2795
2795
|
this.storageSettings.settings.password.defaultValue = parentDevice.storageSettings.values.password;
|
|
2796
2796
|
this.storageSettings.settings.ipAddress.defaultValue = parentDevice.storageSettings.values.ipAddress;
|
|
2797
|
+
} else {
|
|
2798
|
+
this.storageSettings.settings.username.hide = false;
|
|
2799
|
+
this.storageSettings.settings.password.hide = false;
|
|
2800
|
+
this.storageSettings.settings.ipAddress.hide = false;
|
|
2801
|
+
this.storageSettings.settings.uid.hide = false;
|
|
2797
2802
|
}
|
|
2798
2803
|
|
|
2799
2804
|
this.updateVideoClipsAutoLoad();
|
|
2800
2805
|
|
|
2801
2806
|
this.onDeviceEvent(ScryptedInterface.Settings, '');
|
|
2807
|
+
|
|
2808
|
+
try {
|
|
2809
|
+
await this.getVideoStreamOptions();
|
|
2810
|
+
} catch (e) {
|
|
2811
|
+
logger.error('Failed to get video stream options in init', e?.message || String(e));
|
|
2812
|
+
}
|
|
2802
2813
|
}
|
|
2803
2814
|
|
|
2804
2815
|
async updateSleepingState(sleepStatus: SleepStatus): Promise<void> {
|