This commit is contained in:
Andrew Bauer 2020-12-07 14:44:45 -06:00
parent 1772d37c08
commit 691f9a70f9
1 changed files with 3 additions and 3 deletions

View File

@ -131,7 +131,7 @@ function changeScale() {
streamImg.width( newWidth );
streamImg.height( newHeight );
streamImg.src = oldSrc;
streamImg.src = newSrc;
} else {
console.error('No element found for liveStream'+monitorId);
}
@ -294,7 +294,7 @@ function getStreamCmdResponse(respObj, respText) {
if ( streamImg ) {
var oldSrc = streamImg.attr('src');
var newSrc = oldSrc.replace(/auth=\w+/i, 'auth='+streamStatus.auth);
streamImg.src = newSrc;
streamImg.src = newSrc;
}
streamCmdParms = streamCmdParms.replace(/auth=\w+/i, 'auth='+streamStatus.auth);
statusCmdParms = statusCmdParms.replace(/auth=\w+/i, 'auth='+streamStatus.auth);
@ -655,7 +655,7 @@ function handleClick( event ) {
var target = event.target;
var width = $j(target).width();
var height = $j(target).height();
var scaleX = parseInt(monitorWidth / width);
var scaleY = parseInt(monitorHeight / height);
var x = (event.page.x - target.getLeft()) * scaleX;