Skip to content

Commit

Permalink
hikvision: Fix older nvr that send malformed boundary events
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jun 22, 2024
1 parent cca1f3e commit 012ca48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 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.147",
"version": "0.0.148",
"description": "Hikvision Plugin for Scrypted",
"author": "Scrypted",
"license": "Apache",
Expand Down
4 changes: 3 additions & 1 deletion plugins/hikvision/src/hikvision-camera-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,9 @@ export class HikvisionCameraAPI {
continue;
if (ignore === boundaryEnd)
continue;
if (ignore !== boundary) {
if (ignore !== boundary
// older hikvision nvr send a boundary in the headers, but then use a totally different constant boundary value
&& ignore != "--boundary") {
this.console.error('expected boundary but found', ignore);
throw new Error('expected boundary');
}
Expand Down

0 comments on commit 012ca48

Please sign in to comment.