Merge pull request #834 from jaredb7/Spectrogram-Controls-Fix
Check RTSP stream selection control is valid
This commit is contained in:
@@ -481,6 +481,7 @@ h1 {
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
var rtsp_stream_select = document.getElementById("rtsp_stream_select");
|
var rtsp_stream_select = document.getElementById("rtsp_stream_select");
|
||||||
|
if (typeof (rtsp_stream_select) !== 'undefined' && rtsp_stream_select !== null) {
|
||||||
//When the dropdown selection is changed set the new value is settings, then restart the livestream service so it broadcasts newly selected RTSP stream
|
//When the dropdown selection is changed set the new value is settings, then restart the livestream service so it broadcasts newly selected RTSP stream
|
||||||
rtsp_stream_select.onchange = function () {
|
rtsp_stream_select.onchange = function () {
|
||||||
if (this.value !== 'undefined') {
|
if (this.value !== 'undefined') {
|
||||||
@@ -524,6 +525,7 @@ rtsp_stream_select.onchange = function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var slider = document.getElementById("gain_input");
|
var slider = document.getElementById("gain_input");
|
||||||
var output = document.getElementById("gain_value");
|
var output = document.getElementById("gain_value");
|
||||||
|
|||||||
Reference in New Issue
Block a user