@livedesk/client 0.1.31 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/livedesk-client-node.js +21 -3
- package/bin/livedesk-client.js +8 -8
- package/fast/linux-x64/{mindexec-remote-fast → livedesk-client-fast} +0 -0
- package/fast/linux-x64/{mindexec-remote-fast.deps.json → livedesk-client-fast.deps.json} +3 -3
- package/fast/linux-x64/livedesk-client-fast.dll +0 -0
- package/fast/linux-x64/livedesk-client-fast.pdb +0 -0
- package/fast/osx-arm64/{mindexec-remote-fast → livedesk-client-fast} +0 -0
- package/fast/osx-arm64/{mindexec-remote-fast.deps.json → livedesk-client-fast.deps.json} +3 -3
- package/fast/osx-arm64/livedesk-client-fast.dll +0 -0
- package/fast/osx-arm64/livedesk-client-fast.pdb +0 -0
- package/fast/osx-x64/{mindexec-remote-fast → livedesk-client-fast} +0 -0
- package/fast/osx-x64/{mindexec-remote-fast.deps.json → livedesk-client-fast.deps.json} +3 -3
- package/fast/osx-x64/livedesk-client-fast.dll +0 -0
- package/fast/osx-x64/livedesk-client-fast.pdb +0 -0
- package/fast/win-x64/{mindexec-remote-fast.deps.json → livedesk-client-fast.deps.json} +3 -3
- package/fast/win-x64/livedesk-client-fast.dll +0 -0
- package/fast/win-x64/{mindexec-remote-fast.exe → livedesk-client-fast.exe} +0 -0
- package/fast/win-x64/livedesk-client-fast.pdb +0 -0
- package/package.json +1 -1
- package/fast/linux-x64/mindexec-remote-fast.dll +0 -0
- package/fast/linux-x64/mindexec-remote-fast.pdb +0 -0
- package/fast/osx-arm64/mindexec-remote-fast.dll +0 -0
- package/fast/osx-arm64/mindexec-remote-fast.pdb +0 -0
- package/fast/osx-x64/mindexec-remote-fast.dll +0 -0
- package/fast/osx-x64/mindexec-remote-fast.pdb +0 -0
- package/fast/win-x64/mindexec-remote-fast.dll +0 -0
- package/fast/win-x64/mindexec-remote-fast.pdb +0 -0
- /package/fast/linux-x64/{mindexec-remote-fast.runtimeconfig.json → livedesk-client-fast.runtimeconfig.json} +0 -0
- /package/fast/osx-arm64/{mindexec-remote-fast.runtimeconfig.json → livedesk-client-fast.runtimeconfig.json} +0 -0
- /package/fast/osx-x64/{mindexec-remote-fast.runtimeconfig.json → livedesk-client-fast.runtimeconfig.json} +0 -0
- /package/fast/win-x64/{mindexec-remote-fast.runtimeconfig.json → livedesk-client-fast.runtimeconfig.json} +0 -0
|
@@ -341,6 +341,12 @@ function getStatus(options = {}) {
|
|
|
341
341
|
freeBytes: freeMem,
|
|
342
342
|
usedRatio: usedMemRatio
|
|
343
343
|
},
|
|
344
|
+
screenCount: 1,
|
|
345
|
+
monitorCount: 1,
|
|
346
|
+
screens: {
|
|
347
|
+
count: 1,
|
|
348
|
+
displays: []
|
|
349
|
+
},
|
|
344
350
|
disk: getRootDiskStatus(),
|
|
345
351
|
gpu: acceleratorStatus.gpu,
|
|
346
352
|
npu: acceleratorStatus.npu,
|
|
@@ -528,7 +534,11 @@ function readJpegDimensions(buffer) {
|
|
|
528
534
|
return { width: 0, height: 0 };
|
|
529
535
|
}
|
|
530
536
|
|
|
531
|
-
|
|
537
|
+
function normalizeMonitorIndex(value, fallback = 0) {
|
|
538
|
+
return clampInteger(value, 0, 63, fallback);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
async function captureNativeDesktopFrame(frameSeq, monitorIndex = 0) {
|
|
532
542
|
const screenshotModule = await import('node-screenshots');
|
|
533
543
|
const Monitor = screenshotModule.Monitor || screenshotModule.default?.Monitor;
|
|
534
544
|
if (!Monitor?.all) {
|
|
@@ -536,7 +546,8 @@ async function captureNativeDesktopFrame(frameSeq) {
|
|
|
536
546
|
}
|
|
537
547
|
|
|
538
548
|
const monitors = Monitor.all();
|
|
539
|
-
const
|
|
549
|
+
const selectedIndex = Math.max(0, Math.min(monitors.length - 1, normalizeMonitorIndex(monitorIndex)));
|
|
550
|
+
const monitor = monitors[selectedIndex] || monitors.find(item => item?.isPrimary?.() === true) || monitors[0];
|
|
540
551
|
if (!monitor?.captureImage) {
|
|
541
552
|
throw new Error('No capturable desktop monitor was found.');
|
|
542
553
|
}
|
|
@@ -555,12 +566,14 @@ async function captureNativeDesktopFrame(frameSeq) {
|
|
|
555
566
|
height: dimensions.height,
|
|
556
567
|
mimeType: 'image/jpeg',
|
|
557
568
|
data: buffer.toString('base64'),
|
|
569
|
+
monitorIndex: selectedIndex,
|
|
570
|
+
monitorCount: Math.max(1, monitors.length),
|
|
558
571
|
capturedAt: new Date().toISOString()
|
|
559
572
|
};
|
|
560
573
|
}
|
|
561
574
|
|
|
562
575
|
async function captureDesktopThumbnailFrame(payload, frameSeq) {
|
|
563
|
-
return await captureNativeDesktopFrame(frameSeq);
|
|
576
|
+
return await captureNativeDesktopFrame(frameSeq, payload?.monitorIndex ?? payload?.screenIndex ?? payload?.displayIndex);
|
|
564
577
|
}
|
|
565
578
|
|
|
566
579
|
async function captureScreenFrame(options, payload, frameSeq, capability = 'thumbnail') {
|
|
@@ -749,6 +762,8 @@ function startLiveStream(socket, options, message, nextFrameSeq, activeStreams)
|
|
|
749
762
|
capturedAt: frame.capturedAt,
|
|
750
763
|
fps,
|
|
751
764
|
mode: 'mode1-jpeg',
|
|
765
|
+
monitorIndex: frame.monitorIndex ?? 0,
|
|
766
|
+
monitorCount: frame.monitorCount ?? 1,
|
|
752
767
|
droppedByAgent: stream.frameDrops,
|
|
753
768
|
data: frame.data
|
|
754
769
|
});
|
|
@@ -1054,6 +1069,9 @@ function connectOnce(options, deviceId) {
|
|
|
1054
1069
|
status: true,
|
|
1055
1070
|
thumbnail: options.thumbnailEnabled,
|
|
1056
1071
|
liveStream: options.liveEnabled,
|
|
1072
|
+
monitorSelection: true,
|
|
1073
|
+
screenCount: 1,
|
|
1074
|
+
monitorCount: 1,
|
|
1057
1075
|
control: false,
|
|
1058
1076
|
audio: false,
|
|
1059
1077
|
remoteAudio: false,
|
package/bin/livedesk-client.js
CHANGED
|
@@ -703,29 +703,29 @@ function getFastRuntime() {
|
|
|
703
703
|
if (platform === 'win32' && arch === 'x64') {
|
|
704
704
|
return {
|
|
705
705
|
rid: 'win-x64',
|
|
706
|
-
executable: join(packageRoot, 'fast', 'win-x64', '
|
|
707
|
-
dll: join(packageRoot, 'fast', 'win-x64', '
|
|
706
|
+
executable: join(packageRoot, 'fast', 'win-x64', 'livedesk-client-fast.exe'),
|
|
707
|
+
dll: join(packageRoot, 'fast', 'win-x64', 'livedesk-client-fast.dll')
|
|
708
708
|
};
|
|
709
709
|
}
|
|
710
710
|
if (platform === 'darwin' && arch === 'arm64') {
|
|
711
711
|
return {
|
|
712
712
|
rid: 'osx-arm64',
|
|
713
|
-
executable: join(packageRoot, 'fast', 'osx-arm64', '
|
|
714
|
-
dll: join(packageRoot, 'fast', 'osx-arm64', '
|
|
713
|
+
executable: join(packageRoot, 'fast', 'osx-arm64', 'livedesk-client-fast'),
|
|
714
|
+
dll: join(packageRoot, 'fast', 'osx-arm64', 'livedesk-client-fast.dll')
|
|
715
715
|
};
|
|
716
716
|
}
|
|
717
717
|
if (platform === 'darwin' && arch === 'x64') {
|
|
718
718
|
return {
|
|
719
719
|
rid: 'osx-x64',
|
|
720
|
-
executable: join(packageRoot, 'fast', 'osx-x64', '
|
|
721
|
-
dll: join(packageRoot, 'fast', 'osx-x64', '
|
|
720
|
+
executable: join(packageRoot, 'fast', 'osx-x64', 'livedesk-client-fast'),
|
|
721
|
+
dll: join(packageRoot, 'fast', 'osx-x64', 'livedesk-client-fast.dll')
|
|
722
722
|
};
|
|
723
723
|
}
|
|
724
724
|
if (platform === 'linux' && arch === 'x64') {
|
|
725
725
|
return {
|
|
726
726
|
rid: 'linux-x64',
|
|
727
|
-
executable: join(packageRoot, 'fast', 'linux-x64', '
|
|
728
|
-
dll: join(packageRoot, 'fast', 'linux-x64', '
|
|
727
|
+
executable: join(packageRoot, 'fast', 'linux-x64', 'livedesk-client-fast'),
|
|
728
|
+
dll: join(packageRoot, 'fast', 'linux-x64', 'livedesk-client-fast.dll')
|
|
729
729
|
};
|
|
730
730
|
}
|
|
731
731
|
|
|
Binary file
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
"targets": {
|
|
8
8
|
".NETCoreApp,Version=v9.0": {},
|
|
9
9
|
".NETCoreApp,Version=v9.0/linux-x64": {
|
|
10
|
-
"
|
|
10
|
+
"livedesk-client-fast/1.0.0": {
|
|
11
11
|
"runtime": {
|
|
12
|
-
"
|
|
12
|
+
"livedesk-client-fast.dll": {}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"libraries": {
|
|
18
|
-
"
|
|
18
|
+
"livedesk-client-fast/1.0.0": {
|
|
19
19
|
"type": "project",
|
|
20
20
|
"serviceable": false,
|
|
21
21
|
"sha512": ""
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
"targets": {
|
|
8
8
|
".NETCoreApp,Version=v9.0": {},
|
|
9
9
|
".NETCoreApp,Version=v9.0/osx-arm64": {
|
|
10
|
-
"
|
|
10
|
+
"livedesk-client-fast/1.0.0": {
|
|
11
11
|
"runtime": {
|
|
12
|
-
"
|
|
12
|
+
"livedesk-client-fast.dll": {}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"libraries": {
|
|
18
|
-
"
|
|
18
|
+
"livedesk-client-fast/1.0.0": {
|
|
19
19
|
"type": "project",
|
|
20
20
|
"serviceable": false,
|
|
21
21
|
"sha512": ""
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
"targets": {
|
|
8
8
|
".NETCoreApp,Version=v9.0": {},
|
|
9
9
|
".NETCoreApp,Version=v9.0/osx-x64": {
|
|
10
|
-
"
|
|
10
|
+
"livedesk-client-fast/1.0.0": {
|
|
11
11
|
"runtime": {
|
|
12
|
-
"
|
|
12
|
+
"livedesk-client-fast.dll": {}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"libraries": {
|
|
18
|
-
"
|
|
18
|
+
"livedesk-client-fast/1.0.0": {
|
|
19
19
|
"type": "project",
|
|
20
20
|
"serviceable": false,
|
|
21
21
|
"sha512": ""
|
|
Binary file
|
|
Binary file
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"targets": {
|
|
8
8
|
".NETCoreApp,Version=v9.0": {},
|
|
9
9
|
".NETCoreApp,Version=v9.0/win-x64": {
|
|
10
|
-
"
|
|
10
|
+
"livedesk-client-fast/1.0.0": {
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"NAudio": "2.2.1"
|
|
13
13
|
},
|
|
14
14
|
"runtime": {
|
|
15
|
-
"
|
|
15
|
+
"livedesk-client-fast.dll": {}
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"NAudio/2.2.1": {
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
"libraries": {
|
|
100
|
-
"
|
|
100
|
+
"livedesk-client-fast/1.0.0": {
|
|
101
101
|
"type": "project",
|
|
102
102
|
"serviceable": false,
|
|
103
103
|
"sha512": ""
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|