hikvision-doorbell: Added signaling to listenLoop and updated README.md (#1911)

This commit is contained in:
Roman Sokolov
2025-10-22 18:07:28 +03:00
committed by GitHub
parent 457fbc594e
commit d6afbcef26
3 changed files with 7 additions and 3 deletions

View File

@@ -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.

View File

@@ -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",

View File

@@ -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;
}