@mega-yfue/eufy-sdk 0.4.0-beta.29 → 0.4.0-beta.30

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/dist/index.js CHANGED
@@ -15256,6 +15256,7 @@ var SEQUENCE_LOOKBACK = 32768;
15256
15256
  var STALE_RETRANSMIT_DEPTH = 1024;
15257
15257
  var PUNCH_PROBE_SOCKETS = 7;
15258
15258
  var REORDER_WAIT_MS = 250;
15259
+ var VIDEO_REORDER_WAIT_MS = 700;
15259
15260
  var REORDER_MAX_DATAGRAMS = 128;
15260
15261
  var MAX_TRACED_DATAGRAM_GAPS = 8;
15261
15262
  var CMD_SET_PAYLOAD = 1350;
@@ -16737,7 +16738,7 @@ var P2PSession = class _P2PSession extends EventEmitter2 {
16737
16738
  * if the missing one arrives. A logical frame's payload spans datagrams that carry no header of their
16738
16739
  * own, so reassembling around a hole is impossible; waiting for it is what keeps the frame whole.
16739
16740
  *
16740
- * Only once {@link REORDER_WAIT_MS} passes, or {@link REORDER_MAX_DATAGRAMS} pile up, is the datagram
16741
+ * Only once the data type's reorder wait passes, or {@link REORDER_MAX_DATAGRAMS} pile up, is the datagram
16741
16742
  * treated as lost: a pending frame is discarded and delivery resumes from the earliest held datagram.
16742
16743
  */
16743
16744
  onData(msg, addr) {
@@ -16792,7 +16793,7 @@ var P2PSession = class _P2PSession extends EventEmitter2 {
16792
16793
  const timer = setTimeout(() => {
16793
16794
  reorder.timer = void 0;
16794
16795
  this.abandonHole(dataType);
16795
- }, REORDER_WAIT_MS);
16796
+ }, dataType === P2PDataType.VIDEO ? VIDEO_REORDER_WAIT_MS : REORDER_WAIT_MS);
16796
16797
  timer.unref?.();
16797
16798
  reorder.timer = timer;
16798
16799
  }