From 8ee106254679247f8ed0b04f9d7bd2bd849db422 Mon Sep 17 00:00:00 2001 From: Brandon McFarlin Date: Sun, 2 Aug 2020 18:47:02 -0400 Subject: [PATCH] fix for streamQuality without options --- src/streamer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streamer.ts b/src/streamer.ts index f5753cd..a1a143b 100644 --- a/src/streamer.ts +++ b/src/streamer.ts @@ -251,7 +251,7 @@ export class NexusStreamer { }); let index = -1; - switch (this.config.options.streamQuality) { + switch (this.config.options?.streamQuality || 3) { case 1: this.log.debug('Using LOW quality stream.'); primaryProfile = StreamProfile.VIDEO_H264_100KBIT_L30;