diff --git a/plugins/rtsp/package-lock.json b/plugins/rtsp/package-lock.json index c9e83b086..f8b87b167 100644 --- a/plugins/rtsp/package-lock.json +++ b/plugins/rtsp/package-lock.json @@ -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", diff --git a/plugins/rtsp/package.json b/plugins/rtsp/package.json index cff422516..eaa470ced 100644 --- a/plugins/rtsp/package.json +++ b/plugins/rtsp/package.json @@ -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", diff --git a/plugins/rtsp/src/rtsp.ts b/plugins/rtsp/src/rtsp.ts index 02399a776..38473fd41 100644 --- a/plugins/rtsp/src/rtsp.ts +++ b/plugins/rtsp/src/rtsp.ts @@ -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);