livedesk 0.1.159 → 0.1.161
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/hub/src/remote-hub.js
CHANGED
|
@@ -4506,13 +4506,13 @@ export function createRemoteHub(options = {}) {
|
|
|
4506
4506
|
|
|
4507
4507
|
function normalizeLiveStreamStartOptions(options = {}) {
|
|
4508
4508
|
const transfer = buildRemoteFrameTransferDescriptor(options.mode || options.frameMode || DEFAULT_REMOTE_FRAME_MODE);
|
|
4509
|
-
const
|
|
4509
|
+
const streamPurpose = safeString(options.streamPurpose || options.purpose || 'wall', 24) || 'wall';
|
|
4510
|
+
const maxFps = streamPurpose === 'control' ? 60 : 30;
|
|
4510
4511
|
const fps = clampNumber(options.fps, 1, maxFps, 8);
|
|
4511
4512
|
const maxWidth = clampNumber(options.maxWidth, 320, 3840, 640);
|
|
4512
4513
|
const maxHeight = clampNumber(options.maxHeight, 180, 2160, 360);
|
|
4513
4514
|
const quality = clampNumber(options.quality, 20, 95, 45);
|
|
4514
4515
|
const monitorIndex = normalizeMonitorIndex(options.monitorIndex ?? options.screenIndex ?? options.displayIndex);
|
|
4515
|
-
const streamPurpose = safeString(options.streamPurpose || options.purpose || 'wall', 24) || 'wall';
|
|
4516
4516
|
return { fps, maxWidth, maxHeight, quality, monitorIndex, transfer, streamPurpose };
|
|
4517
4517
|
}
|
|
4518
4518
|
|
package/hub/src/server.js
CHANGED
|
@@ -407,7 +407,8 @@ function normalizeTransferChunk(body = {}) {
|
|
|
407
407
|
|
|
408
408
|
function normalizeLiveOptions(payload = {}) {
|
|
409
409
|
const mode = String(payload.frameMode || payload.mode || 'mode3-h264-hw').trim() || 'mode3-h264-hw';
|
|
410
|
-
const
|
|
410
|
+
const streamPurpose = String(payload.streamPurpose || payload.purpose || 'wall').trim().slice(0, 24) || 'wall';
|
|
411
|
+
const maxFps = streamPurpose === 'control' ? 60 : 30;
|
|
411
412
|
return {
|
|
412
413
|
fps: clampNumber(payload.fps, 1, maxFps, 2),
|
|
413
414
|
maxWidth: clampNumber(payload.maxWidth, 320, 3840, 640),
|
|
@@ -417,7 +418,7 @@ function normalizeLiveOptions(payload = {}) {
|
|
|
417
418
|
monitorSelections: normalizeMonitorSelections(payload.monitorSelections),
|
|
418
419
|
forceRestart: /^(1|true|yes|on)$/i.test(String(payload.forceRestart ?? '')),
|
|
419
420
|
reuseExisting: /^(1|true|yes|on)$/i.test(String(payload.reuseExisting ?? '')),
|
|
420
|
-
streamPurpose
|
|
421
|
+
streamPurpose,
|
|
421
422
|
mode,
|
|
422
423
|
frameMode: mode
|
|
423
424
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "livedesk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.161",
|
|
4
4
|
"description": "LiveDesk Hub and client launcher",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@ffmpeg-installer/ffmpeg": "^1.1.0",
|
|
34
|
-
"@livedesk/client": "0.1.
|
|
34
|
+
"@livedesk/client": "0.1.106",
|
|
35
35
|
"cors": "^2.8.5",
|
|
36
36
|
"express": "^4.21.2",
|
|
37
37
|
"ffmpeg-static": "^5.3.0",
|