Fix use of thisUrl instead of monitorUrl when getting stream status. Fix changing stream image due to use of jquery.

This commit is contained in:
Isaac Connor 2021-10-31 14:44:36 -04:00
parent f8e6fae013
commit 51e7aa0983
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ function streamReq(data) {
data.view = 'request'; data.view = 'request';
data.request = 'stream'; data.request = 'stream';
$j.getJSON(thisUrl, data) $j.getJSON(monitorUrl, data)
.done(getCmdResponse) .done(getCmdResponse)
.fail(logAjaxFail); .fail(logAjaxFail);
} }
@ -300,7 +300,7 @@ function getCmdResponse(respObj, respText) {
if (streamStatus.auth) { if (streamStatus.auth) {
// Try to reload the image stream. // Try to reload the image stream.
var streamImg = $j('#evtStream'); var streamImg = document.getElementById('evtStream');
if (streamImg) { if (streamImg) {
streamImg.src = streamImg.src.replace(/auth=\w+/i, 'auth='+streamStatus.auth); streamImg.src = streamImg.src.replace(/auth=\w+/i, 'auth='+streamStatus.auth);
} }