livedesk 0.1.114 → 0.1.115
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/server.js
CHANGED
|
@@ -347,6 +347,8 @@ function buildRemoteFrameBinaryPacket(frameEvent) {
|
|
|
347
347
|
return null;
|
|
348
348
|
}
|
|
349
349
|
const frame = frameEvent.frame || {};
|
|
350
|
+
const hubPacketEpochMs = Date.now();
|
|
351
|
+
const hubPacketAt = new Date(hubPacketEpochMs).toISOString();
|
|
350
352
|
const metadata = {
|
|
351
353
|
type: 'remote.frame.binary',
|
|
352
354
|
kind: frameEvent.kind || 'live',
|
|
@@ -380,6 +382,8 @@ function buildRemoteFrameBinaryPacket(frameEvent) {
|
|
|
380
382
|
fps: Number(frame.fps || 0) || 0,
|
|
381
383
|
capturedAt: frame.capturedAt || '',
|
|
382
384
|
receivedAt: frame.receivedAt || '',
|
|
385
|
+
hubPacketAt,
|
|
386
|
+
hubPacketEpochMs,
|
|
383
387
|
byteLength: Number(frameEvent.byteLength || payload.length) || payload.length,
|
|
384
388
|
contentHash: frame.contentHash || '',
|
|
385
389
|
captureMs: Number(frame.captureMs || 0) || 0,
|