alexa: provide hint that medium resolution is always used.

This commit is contained in:
Koushik Dutta
2023-01-13 11:05:06 -08:00
parent f51ce5c7e9
commit d7dab4bef3
3 changed files with 10 additions and 4 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -50,7 +50,7 @@ addSupportedType(ScryptedDeviceType.Camera, {
capabilities
}
},
async reportState(device: ScryptedDevice & MotionSensor): Promise<StateReport>{
async reportState(device: ScryptedDevice & MotionSensor): Promise<StateReport> {
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,
}
}
}