@scrypted/amcrest
Advanced tools
Comparing version
{ | ||
"name": "@scrypted/amcrest", | ||
"version": "0.0.68", | ||
"version": "0.0.69", | ||
"description": "Amcrest Plugin for Scrypted", | ||
@@ -5,0 +5,0 @@ "author": "Scrypted", |
@@ -21,3 +21,3 @@ import sdk, { MediaObject, Camera, ScryptedInterface, Setting, ScryptedDeviceType, Intercom, FFMpegInput, ScryptedMimeTypes, PictureOptions } from "@scrypted/sdk"; | ||
if (!this.client) | ||
this.client = new AmcrestCameraClient(this.storage.getItem('ip'), this.getUsername(), this.getPassword(), this.console); | ||
this.client = new AmcrestCameraClient(this.getHttpAddress(), this.getUsername(), this.getPassword(), this.console); | ||
return this.client; | ||
@@ -32,3 +32,3 @@ } | ||
try { | ||
const client = new AmcrestCameraClient(this.storage.getItem('ip'), this.getUsername(), this.getPassword(), this.console); | ||
const client = new AmcrestCameraClient(this.getHttpAddress(), this.getUsername(), this.getPassword(), this.console); | ||
const events = await client.listenEvents(); | ||
@@ -35,0 +35,0 @@ ret.destroy = () => { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
221183
0.78%667
0.91%