the liveStream div now has the monitorId appended to it, so add that when we lookup the livestream and put a new rand on it to force a reload
This commit is contained in:
parent
824d7c5b43
commit
f35fe185fb
|
@ -213,9 +213,13 @@ function getStreamCmdResponse( respObj, respText )
|
||||||
else {
|
else {
|
||||||
checkStreamForErrors("getStreamCmdResponse",respObj);//log them
|
checkStreamForErrors("getStreamCmdResponse",respObj);//log them
|
||||||
// Try to reload the image stream.
|
// Try to reload the image stream.
|
||||||
var streamImg = document.getElementById('liveStream');
|
var streamImg = document.getElementById('liveStream'+monitorId);
|
||||||
if ( streamImg )
|
if ( streamImg ) {
|
||||||
streamImg.src = streamImg.src.replace(/rand=\d+/i,'rand='+Math.floor((Math.random() * 1000000) ));
|
streamImg.src = streamImg.src.replace(/rand=\d+/i,'rand='+Math.floor((Math.random() * 1000000) ));
|
||||||
|
console.log("Changing lviestream src to " + streamImg.src);
|
||||||
|
} else {
|
||||||
|
console.log("Unable to find streamImg liveStream");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var streamCmdTimeout = statusRefreshTimeout;
|
var streamCmdTimeout = statusRefreshTimeout;
|
||||||
|
|
Loading…
Reference in New Issue