rebroadcast: fix settings crash if maxbitrate was not set

This commit is contained in:
Koushik Dutta
2022-03-21 22:43:56 -07:00
parent 460370815c
commit 3ef4a8e657
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

@@ -378,7 +378,7 @@ class PrebufferSession {
title: 'Max Bitrate',
description: 'This camera supports Adaptive Bitrate. Set the maximum bitrate to be allowed while using adaptive bitrate streaming. This will also serve as the default bitrate.',
type: 'number',
value: this.maxBitrate.toString(),
value: this.maxBitrate?.toString(),
});
}