homekit: watch for no media stream being returned.

This commit is contained in:
Koushik Dutta
2021-10-15 09:34:39 -07:00
parent 87e63fc518
commit eebc63253a
3 changed files with 5 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/homekit",
"version": "0.0.84",
"version": "0.0.85",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/homekit",
"version": "0.0.84",
"version": "0.0.85",
"dependencies": {
"hap-nodejs": "file:../HAP-NodeJS",
"lodash": "^4.17.21",

View File

@@ -40,5 +40,5 @@
"@types/qrcode": "^1.4.1",
"@types/url-parse": "^1.4.3"
},
"version": "0.0.84"
"version": "0.0.85"
}

View File

@@ -25,7 +25,7 @@ export class CameraMixin extends SettingsMixinDeviceBase<any> implements Setting
catch (e) {
}
if (msos.length) {
if (msos?.length) {
settings.push({
title: 'Live Stream',
key: 'streamingChannel',
@@ -43,7 +43,7 @@ export class CameraMixin extends SettingsMixinDeviceBase<any> implements Setting
});
}
if (this.interfaces.includes(ScryptedInterface.MotionSensor)) {
if (msos.length) {
if (msos?.length) {
settings.push({
title: 'Recording Stream',
key: 'recordingChannel',