mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added deviceinfo support to meshCtrl.
This commit is contained in:
parent
947f320335
commit
a2b944cd33
6 changed files with 253 additions and 11 deletions
BIN
public/images/icon-film.png
Normal file
BIN
public/images/icon-film.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 612 B |
|
@ -196,6 +196,7 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
|
|||
if (obj.debugmode > 1) { console.log("KRecv(" + str.length + "): " + rstr2hex(str.substring(0, Math.min(str.length, 40)))); }
|
||||
if (str.length < 4) return;
|
||||
var cmdmsg = null, X = 0, Y = 0, command = ReadShort(str, 0), cmdsize = ReadShort(str, 2), jumboAdd = 0;
|
||||
if (obj.recordedData != null) { obj.recordedData.push({ t: Date.now(), d: str }); }
|
||||
if ((command == 27) && (cmdsize == 8)) {
|
||||
// Jumbo packet
|
||||
if (str.length < 12) return;
|
||||
|
@ -777,6 +778,18 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
|
|||
return true;
|
||||
}
|
||||
|
||||
obj.StartRecording = function () {
|
||||
obj.recordedData = [];
|
||||
obj.recordedStart = Date.now();
|
||||
}
|
||||
|
||||
obj.StopRecording = function () {
|
||||
var r = obj.recordedData;
|
||||
delete obj.recordedData;
|
||||
delete obj.recordedStart;
|
||||
return r;
|
||||
}
|
||||
|
||||
// Private method
|
||||
obj.MuchTheSame = function (a, b) { return (Math.abs(a - b) < 4); }
|
||||
obj.Debug = function (msg) { console.log(msg); }
|
||||
|
|
|
@ -2339,7 +2339,7 @@ a {
|
|||
-ms-grid-row: 4;
|
||||
}
|
||||
|
||||
#DeskChatButton, #DeskNotifyButton, #DeskOpenWebButton, #DeskBackgroundButton, #DeskSaveImageButton {
|
||||
#DeskChatButton, #DeskNotifyButton, #DeskOpenWebButton, #DeskBackgroundButton, #DeskSaveImageButton, #DeskRecordButton {
|
||||
float: right;
|
||||
margin-top: 1px;
|
||||
margin-right: 4px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue