livedesk 0.1.148 → 0.1.149
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
|
@@ -3025,6 +3025,13 @@ export function createRemoteHub(options = {}) {
|
|
|
3025
3025
|
: 0;
|
|
3026
3026
|
}
|
|
3027
3027
|
|
|
3028
|
+
function readFrameStageMs(message, property) {
|
|
3029
|
+
const value = Number(message?.[property]);
|
|
3030
|
+
return Number.isFinite(value) && value >= 0
|
|
3031
|
+
? Math.round(value)
|
|
3032
|
+
: 0;
|
|
3033
|
+
}
|
|
3034
|
+
|
|
3028
3035
|
function computeSameContentStreak(previousFrame, contentHash) {
|
|
3029
3036
|
if (!contentHash || !previousFrame?.contentHash || previousFrame.contentHash !== contentHash) {
|
|
3030
3037
|
return 0;
|
|
@@ -3097,6 +3104,9 @@ export function createRemoteHub(options = {}) {
|
|
|
3097
3104
|
transport,
|
|
3098
3105
|
contentHash,
|
|
3099
3106
|
captureMs: readFrameCaptureMs(message),
|
|
3107
|
+
captureStageMs: readFrameStageMs(message, 'captureStageMs'),
|
|
3108
|
+
convertMs: readFrameStageMs(message, 'convertMs'),
|
|
3109
|
+
compressMs: readFrameStageMs(message, 'compressMs'),
|
|
3100
3110
|
sameContentStreak,
|
|
3101
3111
|
payload,
|
|
3102
3112
|
accessToken: createFrameAccessToken()
|
|
@@ -3286,6 +3296,9 @@ export function createRemoteHub(options = {}) {
|
|
|
3286
3296
|
transport,
|
|
3287
3297
|
contentHash,
|
|
3288
3298
|
captureMs: readFrameCaptureMs(message),
|
|
3299
|
+
captureStageMs: readFrameStageMs(message, 'captureStageMs'),
|
|
3300
|
+
convertMs: readFrameStageMs(message, 'convertMs'),
|
|
3301
|
+
compressMs: readFrameStageMs(message, 'compressMs'),
|
|
3289
3302
|
sameContentStreak,
|
|
3290
3303
|
payload,
|
|
3291
3304
|
accessToken: createFrameAccessToken()
|
package/hub/src/server.js
CHANGED
|
@@ -766,6 +766,9 @@ function buildRemoteFrameBinaryPacket(frameEvent, diagnostics = {}) {
|
|
|
766
766
|
byteLength: Number(frameEvent.byteLength || payload.length) || payload.length,
|
|
767
767
|
contentHash: frame.contentHash || '',
|
|
768
768
|
captureMs: Number(frame.captureMs || 0) || 0,
|
|
769
|
+
captureStageMs: Number(frame.captureStageMs || 0) || 0,
|
|
770
|
+
convertMs: Number(frame.convertMs || 0) || 0,
|
|
771
|
+
compressMs: Number(frame.compressMs || 0) || 0,
|
|
769
772
|
sameContentStreak: Number(frame.sameContentStreak || 0) || 0
|
|
770
773
|
};
|
|
771
774
|
const metaBuffer = Buffer.from(JSON.stringify(metadata), 'utf8');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "livedesk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.149",
|
|
4
4
|
"description": "LiveDesk Hub and client launcher",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"node": ">=20"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@livedesk/client": "0.1.
|
|
33
|
+
"@livedesk/client": "0.1.101",
|
|
34
34
|
"cors": "^2.8.5",
|
|
35
35
|
"express": "^4.21.2",
|
|
36
36
|
"path-to-regexp": "0.1.13",
|