From d7dab4bef37bfb486dd2c9fc8f14737fde4db3ba Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Fri, 13 Jan 2023 11:05:06 -0800 Subject: [PATCH] alexa: provide hint that medium resolution is always used. --- plugins/alexa/package-lock.json | 4 ++-- plugins/alexa/package.json | 2 +- plugins/alexa/src/types/camera.ts | 8 +++++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/plugins/alexa/package-lock.json b/plugins/alexa/package-lock.json index 2311d4370..a43ab55ee 100644 --- a/plugins/alexa/package-lock.json +++ b/plugins/alexa/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/alexa", - "version": "0.0.19", + "version": "0.0.20", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/alexa", - "version": "0.0.19", + "version": "0.0.20", "dependencies": { "@types/node": "^16.6.1", "alexa-smarthome-ts": "^0.0.1", diff --git a/plugins/alexa/package.json b/plugins/alexa/package.json index 1f76b338b..682a01d36 100644 --- a/plugins/alexa/package.json +++ b/plugins/alexa/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/alexa", - "version": "0.0.19", + "version": "0.0.20", "scripts": { "scrypted-setup-project": "scrypted-setup-project", "prescrypted-setup-project": "scrypted-package-json", diff --git a/plugins/alexa/src/types/camera.ts b/plugins/alexa/src/types/camera.ts index 025aa936f..1f9a71d9e 100644 --- a/plugins/alexa/src/types/camera.ts +++ b/plugins/alexa/src/types/camera.ts @@ -50,7 +50,7 @@ addSupportedType(ScryptedDeviceType.Camera, { capabilities } }, - async reportState(device: ScryptedDevice & MotionSensor): Promise{ + async reportState(device: ScryptedDevice & MotionSensor): Promise { return { type: 'state', namespace: 'Alexa', @@ -110,6 +110,12 @@ export class AlexaSignalingSession implements RTCSignalingSession { sdp: this.directive.payload.offer.value, }, disableTrickle: true, + // this could be a low resolution screen, no way of knowing, so never send a + // 1080p+ stream. + screen: { + width: 1280, + height: 720, + } } }