rtsp: fixup snapshot override url not removing Camera interface

This commit is contained in:
Koushik Dutta
2021-10-01 14:32:33 -07:00
parent 5ad413cbb7
commit eaefb9852d
3 changed files with 5 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/rtsp",
"version": "0.0.27",
"version": "0.0.28",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/rtsp",
"version": "0.0.27",
"version": "0.0.28",
"license": "Apache",
"dependencies": {
"@koush/axios-digest-auth": "^0.7.2",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/rtsp",
"version": "0.0.27",
"version": "0.0.28",
"description": "RTSP Cameras and Streams Plugin for Scrypted",
"author": "Scrypted",
"license": "Apache",

View File

@@ -149,9 +149,9 @@ export class RtspCamera extends ScryptedDeviceBase implements Camera, VideoCamer
this.snapshotAuth = undefined;
if (key === 'snapshotUrl') {
const interfaces = this.providedInterfaces;
let interfaces = this.providedInterfaces;
if (!value)
interfaces.filter(iface => iface !== ScryptedInterface.Camera)
interfaces = interfaces.filter(iface => iface !== ScryptedInterface.Camera)
else
interfaces.push(ScryptedInterface.Camera);