rebroadcast: cleanups

This commit is contained in:
Koushik Dutta
2021-10-14 02:22:47 -07:00
parent 12a30d4eaa
commit 48bc6cd6d3
3 changed files with 9 additions and 5 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/prebuffer-mixin",
"version": "0.1.62",
"version": "0.1.63",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/prebuffer-mixin",
"version": "0.1.62",
"version": "0.1.63",
"license": "Apache-2.0",
"dependencies": {
"@scrypted/common": "file:../../common",

View File

@@ -1,6 +1,6 @@
{
"name": "@scrypted/prebuffer-mixin",
"version": "0.1.62",
"version": "0.1.63",
"description": "Rebroadcast and Prebuffer for VideoCameras.",
"author": "Scrypted",
"license": "Apache-2.0",

View File

@@ -449,7 +449,7 @@ class PrebufferMixin extends SettingsMixinDeviceBase<VideoCamera> implements Vid
settings.push(
{
title: 'Prebuffered Streams',
description: 'The streams to prebuffer.',
description: 'The streams to prebuffer. Enable only as necessary to reduce traffic.',
key: 'enabledStreams',
value: enabledStreams.map(mso => mso.name),
choices: msos.map(mso => mso.name),
@@ -458,7 +458,11 @@ class PrebufferMixin extends SettingsMixinDeviceBase<VideoCamera> implements Vid
)
}
for (const session of this.sessions.values()) {
for (const id of this.sessions.keys()) {
// ignore the default key entry, which will resolve to something else.
if (id == null)
continue;
const session = this.sessions.get(id);
settings.push(...await session.getMixinSettings());
}