mirror of
https://github.com/koush/scrypted.git
synced 2026-08-10 07:00:47 +01:00
rebroadcast: cleanups
This commit is contained in:
4
plugins/prebuffer-mixin/package-lock.json
generated
4
plugins/prebuffer-mixin/package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user