@vindral/web-sdk 2.1.0 → 2.1.1

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
@@ -1055,6 +1055,7 @@ declare class SyncModule {
1055
1055
  readonly syncMaxBehindIncreaseEvery = 3;
1056
1056
  readonly syncMaxBehindMaximumAllowed = 2000;
1057
1057
  syncMaxBehindMultiplier: number;
1058
+ timeshiftOnAudio: boolean;
1058
1059
  readonly syncMaxAhead = 150;
1059
1060
  timeshiftSync: {
1060
1061
  enabled: boolean;
@@ -1280,14 +1281,18 @@ interface FlushOptions {
1280
1281
  isFinal?: boolean;
1281
1282
  initiator: StatsInitiator;
1282
1283
  }
1283
- interface TelemetryStatisticsSource {
1284
+ interface ParentContext {
1284
1285
  getStatistics(): Statistics;
1286
+ readonly connectionState: Readonly<State>;
1285
1287
  }
1286
1288
  interface TelemetryModuleListeners {
1287
1289
  ["visibilitystate"]: VisibilityState;
1288
1290
  ["pagehide"]: PageTransitionEvent;
1289
1291
  ["error"]: Readonly<VindralError>;
1290
1292
  }
1293
+ interface TelemetryModuleEvents {
1294
+ ["send signal"]: Readonly<string>;
1295
+ }
1291
1296
  interface TelemetryModuleStatistics {
1292
1297
  errorCount: number;
1293
1298
  }
@@ -1298,7 +1303,7 @@ declare class TelemetryModule {
1298
1303
  private emitter;
1299
1304
  private options;
1300
1305
  private runtimeInfo;
1301
- private statisticsSource;
1306
+ private parentContext;
1302
1307
  private unsentLines;
1303
1308
  private retries;
1304
1309
  private errorCount;
@@ -1306,7 +1311,7 @@ declare class TelemetryModule {
1306
1311
  private statsCount;
1307
1312
  private constructor();
1308
1313
  unload: () => void;
1309
- static create: (logger: Logger, emitter: Emitter<TelemetryModuleListeners, unknown>, options: TelemetryModuleOptions, runtimeInfo: () => Record<string, unknown>, statisticsSource: TelemetryStatisticsSource) => TelemetryModule;
1314
+ static create: (logger: Logger, emitter: Emitter<TelemetryModuleListeners, TelemetryModuleEvents>, options: TelemetryModuleOptions, runtimeInfo: () => Record<string, unknown>, parentContext: ParentContext) => TelemetryModule;
1310
1315
  load: () => void;
1311
1316
  addStats: ({ isFinal, initiator }?: FlushOptions, extra?: Record<string, unknown>) => void;
1312
1317
  addEvent: (event: TelemetryEvent) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vindral/web-sdk",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
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",