Skip to content

Commit

Permalink
src: html: Make the frontend tolerate null extended_configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso authored and patrickelectric committed Feb 14, 2022
1 parent 518535c commit 1bef494
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,14 @@ <h3>Streams</h3>
<h3>Name: {{ stream.video_and_stream.name }}</h3>
</div>
<div>
<p>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}}</p>
<p>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}}
</p>
</div>
<div>
<button type="button" v-on:click="deleteStream(stream.video_and_stream.name)">Delete stream</button>
Expand Down Expand Up @@ -234,7 +241,7 @@ <h3>Name: {{ stream.video_and_stream.name }}</h3>
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(", ") : ""
},
Expand Down

0 comments on commit 1bef494

Please sign in to comment.