From ffbd25b13b092f6e579ac25504ca3a2b850d1403 Mon Sep 17 00:00:00 2001 From: Nick Berardi Date: Tue, 14 Mar 2023 21:40:47 -0400 Subject: [PATCH] alexa: set screen ratio to 720p (#625) --- plugins/alexa/package.json | 2 +- plugins/alexa/src/types/camera/handlers.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/alexa/package.json b/plugins/alexa/package.json index 670cf9f97..07edc318b 100644 --- a/plugins/alexa/package.json +++ b/plugins/alexa/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/alexa", - "version": "0.2.0", + "version": "0.2.1", "scripts": { "scrypted-setup-project": "scrypted-setup-project", "prescrypted-setup-project": "scrypted-package-json", diff --git a/plugins/alexa/src/types/camera/handlers.ts b/plugins/alexa/src/types/camera/handlers.ts index 37cab971a..503ebd641 100644 --- a/plugins/alexa/src/types/camera/handlers.ts +++ b/plugins/alexa/src/types/camera/handlers.ts @@ -17,6 +17,12 @@ export class AlexaSignalingSession implements RTCSignalingSession { sdp: this.directive.payload.offer.value, }, disableTrickle: true, + // this could be a low resolutions creen, no way of knowning, so never send a 1080p stream + screen: { + devicePixelRatio: 1, + width: 1280, + height: 720 + } } }