From 1bef4947b3f769f03486cb42cbc5ad17ab8ad69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ant=C3=B4nio=20Cardoso?= Date: Thu, 10 Feb 2022 13:41:00 -0300 Subject: [PATCH] src: html: Make the frontend tolerate null extended_configuration. --- src/html/index.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/html/index.html b/src/html/index.html index 195e5152..047369b6 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -64,7 +64,14 @@

Streams

Name: {{ stream.video_and_stream.name }}

-

Video: {{ stream.video_and_stream.stream_information.configuration.encode }} {{ stream.video_and_stream.stream_information.configuration.width }}x{{ stream.video_and_stream.stream_information.configuration.height }} @ {{ stream.video_and_stream.stream_information.configuration.frame_interval.denominator / stream.video_and_stream.stream_information.configuration.frame_interval.numerator}} FPS, Thermal: {{stream.video_and_stream.stream_information.extended_configuration.thermal}}

+

Video: {{ stream.video_and_stream.stream_information.configuration.encode }} {{ + stream.video_and_stream.stream_information.configuration.width }}x{{ + stream.video_and_stream.stream_information.configuration.height }} @ {{ + stream.video_and_stream.stream_information.configuration.frame_interval.denominator / + stream.video_and_stream.stream_information.configuration.frame_interval.numerator}} FPS, + Thermal: {{stream.video_and_stream.stream_information.extended_configuration?.thermal ?? + false}} +

@@ -234,7 +241,7 @@

Name: {{ stream.video_and_stream.name }}

width: this.stream.video_and_stream.stream_information.configuration.width } this.stream_setting.configuration.interval = this.stream.video_and_stream.stream_information.configuration.frame_interval - this.stream_setting.extended_configuration.thermal = this.stream.video_and_stream.stream_information.extended_configuration.thermal + this.stream_setting.extended_configuration.thermal = Boolean(this.stream.video_and_stream.stream_information.extended_configuration?.thermal) this.stream_setting.configuration.endpoints = this.stream.video_and_stream.stream_information.endpoints ? this.stream.video_and_stream.stream_information.endpoints.join(", ") : "" },