Skip to content

Commit

Permalink
hikvision: fix events crossing streams in camera channels
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 27, 2024
1 parent 3e18b9e commit 1238abe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions plugins/hikvision/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/hikvision/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/hikvision",
"version": "0.0.141",
"version": "0.0.142",
"description": "Hikvision Plugin for Scrypted",
"author": "Scrypted",
"license": "Apache",
Expand Down
4 changes: 2 additions & 2 deletions plugins/hikvision/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class HikvisionCamera extends RtspSmartCamera implements Camera, Intercom, Reboo
|| event === HikvisionCameraEvent.RegionExit
|| event === HikvisionCameraEvent.FieldDetection) {

if (!checkCameraNumber(cameraNumber))
if (!await checkCameraNumber(cameraNumber))
return;

this.motionDetected = true;
Expand All @@ -135,7 +135,7 @@ class HikvisionCamera extends RtspSmartCamera implements Camera, Intercom, Reboo


const [channelId] = xml.EventNotificationAlert.channelID;
if (!checkCameraNumber(channelId)) {
if (!await checkCameraNumber(channelId)) {
this.console.warn('chann fail')
return;
}
Expand Down

0 comments on commit 1238abe

Please sign in to comment.