mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 06:03:27 +00:00
hikvision-doorbell: Added signaling to listenLoop and updated README.md (#1911)
This commit is contained in:
@@ -16,6 +16,10 @@ Version 2 of this plugin is **not compatible** with version 1.x. Before installi
|
||||
|
||||
After removing the old version, you will need to reconfigure all doorbell devices from scratch.
|
||||
|
||||
### Firmware Requirements
|
||||
|
||||
This version **requires firmware v3.7 or higher**. Older firmware versions are not supported.
|
||||
|
||||
## Two Way Audio
|
||||
|
||||
Two Way Audio is supported if the audio codec is set to G.711ulaw on the doorbell, which is usually the default audio codec. This audio codec will also work with HomeKit. Changing the audio codec from G.711ulaw will cause Two Way Audio to fail on the doorbells that were tested.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vityevato/hikvision-doorbell",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.2",
|
||||
"description": "Hikvision Doorbell Plugin for Scrypted",
|
||||
"author": "Roman Sokolov",
|
||||
"license": "Apache",
|
||||
|
||||
@@ -89,7 +89,6 @@ export class HikvisionDoorbellAPI extends HikvisionCameraAPI
|
||||
endpoint: string;
|
||||
auth: AuthRequst;
|
||||
|
||||
private eventServer?: Server;
|
||||
private listener?: Destroyable;
|
||||
private requestQueue: Promise<any> = Promise.resolve();
|
||||
private alertStream?: Readable;
|
||||
@@ -130,7 +129,6 @@ export class HikvisionDoorbellAPI extends HikvisionCameraAPI
|
||||
destroy(): void
|
||||
{
|
||||
this.listener?.destroy();
|
||||
this.eventServer?.close();
|
||||
this.stopAlertStream();
|
||||
}
|
||||
|
||||
@@ -1157,6 +1155,8 @@ export class HikvisionDoorbellAPI extends HikvisionCameraAPI
|
||||
if (eventType === 'videoloss') {
|
||||
// Track alert stream tick time
|
||||
this.alertTick = Date.now();
|
||||
// Emit 'data' to reset activityTimeout in RtspSmartCamera.listenLoop()
|
||||
this.emitEvent ('data', eventData);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user