change local recording for amt from 200 to 102 to avoid messenger conflict

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458
2025-04-12 22:53:40 +01:00
parent 440cad5b50
commit def7d737e0
3 changed files with 2466 additions and 2436 deletions

View File

@@ -403,7 +403,8 @@
else if (p == 2) { p = "MeshCentral Desktop"; }
else if (p == 100) { p = "Intel&reg; AMT WSMAN"; }
else if (p == 101) { p = "Intel&reg; AMT Redirection"; }
else if (p == 200) { p = "Intel&reg; AMT KVM"; }
else if ((p == 102) || (p == 200 && recFileMetadata.bpp != null)) { p = "Intel&reg; AMT KVM"; }
else if (p == 200) { p = "MeshMessenger"; }
x += addInfoNoEsc("Protocol", p);
}
var encQualityStr = "2 byte-per-pixel";
@@ -469,9 +470,9 @@
amtDesktop.Start();
deskAdjust();
}
else if (recFileMetadata.protocol == 200) {
else if (recFileMetadata.protocol == 102 || (recFileMetadata.protocol == 200 && recFileMetadata.bpp != null)) {
// Intel AMT Midstream KVM
recFileProtocol = 200;
recFileProtocol = 102;
x += '<br /><br /><span style=color:gray>' + "Press [space] to play/pause." + '</span>';
QE('PlayButton', true);
QE('PauseButton', false);
@@ -583,7 +584,7 @@
} else if (readState == 1) {
amtDesktop.ProcessBinaryData(view.buffer);
}
} else if (recFileProtocol == 200) {
} else if (recFileProtocol == 102) {
// Intel AMT midstream KVM
var view = new Uint8Array(data.length);
for (var i = 0; i < data.length; i++) { view[i] = data.charCodeAt(i); }
@@ -600,7 +601,7 @@
}
// This is a PNG screenshot of the display, load it and render it.
if ((type == 3) && (recFileProtocol == 200)) {
if ((type == 3) && (recFileProtocol == 102)) {
var tile = new Image();
tile.src = "data:image/png;base64," + btoa(data);
tile.onload = function () { amtDesktop.canvas.drawImage(tile, 0, 0); }
@@ -836,7 +837,7 @@
amtDesktop.onScreenSizeChange = deskAdjust;
amtDesktop.State = 3;
amtDesktop.Start();
if (recFileMetadata.protocol == 200) {
if (recFileMetadata.protocol == 102) {
if (recFileMetadata.screenSize) { amtDesktop.width = recFileMetadata.screenSize[0]; amtDesktop.height = recFileMetadata.screenSize[1]; }
if (recFileMetadata.bpp) { amtDesktop.bpp = recFileMetadata.bpp; }
if (recFileMetadata.graymode) { amtDesktop.graymode = recFileMetadata.graymode; }