@vindral/web-sdk 2.0.18 → 2.0.19

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/index.d.ts CHANGED
@@ -27,6 +27,7 @@ interface DecodedSampleStatistics {
27
27
  decodeTime: number;
28
28
  transportTimeFromWorker: number;
29
29
  transportTimeToWorker: number;
30
+ samplesInBatch: number;
30
31
  }
31
32
  interface DecodedVideoSample {
32
33
  type: "video";
@@ -460,9 +461,9 @@ declare class ConnectionModule {
460
461
  private transport?;
461
462
  private logger;
462
463
  private options;
463
- private pingInterval?;
464
464
  private rtts;
465
- private lastPingSentTime?;
465
+ private lastPingSentTime;
466
+ private isPingInFlight;
466
467
  private connectCount;
467
468
  private _firstConnectionTime?;
468
469
  private _lastConnectionTime?;
@@ -489,7 +490,8 @@ declare class ConnectionModule {
489
490
  private onTransportChange;
490
491
  disconnect: (reason?: string) => void;
491
492
  reconnect: (reason: string) => void;
492
- private cleanupPingIntervals;
493
+ private resetPingState;
494
+ private pingCooldownExpired;
493
495
  private sendPing;
494
496
  }
495
497
  interface Size {
@@ -956,6 +958,7 @@ declare class SubscriptionModule {
956
958
  setVideoCodec: (videoCodec: VideoCodec | undefined) => void;
957
959
  setAudioCodec: (audioCodec: AudioCodec | undefined) => void;
958
960
  private setBurst;
961
+ private isNewSubscription;
959
962
  private onSubscriptionChanged;
960
963
  private scheduleSubscriptionChange;
961
964
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vindral/web-sdk",
3
- "version": "2.0.18",
3
+ "version": "2.0.19",
4
4
  "homepage": "https://vindral.com",
5
5
  "description": "Web SDK for viewing Vindral streams",
6
6
  "license": "SEE LICENSE IN https://www.vindral.com/terms-conditions",