@vindral/web-sdk 2.1.0 → 2.1.3
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 +10 -3
- package/package.json +1 -1
- package/web-sdk.esm.js +1 -1
- package/web-sdk.umd.js +1 -1
package/index.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ declare class Emitter<TEvents, TEmits = TEvents, ArgLessEvents extends VoidKeys<
|
|
|
86
86
|
on<T extends ArgEvents>(eventName: T, fn: (args: TEvents[T]) => void): void;
|
|
87
87
|
once<T extends ArgLessEvents>(eventName: T, fn: () => void): void;
|
|
88
88
|
once<T extends ArgEvents>(eventName: T, fn: (args: TEvents[T]) => void): void;
|
|
89
|
+
reset(): void;
|
|
89
90
|
private add;
|
|
90
91
|
}
|
|
91
92
|
declare type FilterFunc<T> = (item: T) => boolean;
|
|
@@ -1055,6 +1056,7 @@ declare class SyncModule {
|
|
|
1055
1056
|
readonly syncMaxBehindIncreaseEvery = 3;
|
|
1056
1057
|
readonly syncMaxBehindMaximumAllowed = 2000;
|
|
1057
1058
|
syncMaxBehindMultiplier: number;
|
|
1059
|
+
timeshiftOnAudio: boolean;
|
|
1058
1060
|
readonly syncMaxAhead = 150;
|
|
1059
1061
|
timeshiftSync: {
|
|
1060
1062
|
enabled: boolean;
|
|
@@ -1280,14 +1282,18 @@ interface FlushOptions {
|
|
|
1280
1282
|
isFinal?: boolean;
|
|
1281
1283
|
initiator: StatsInitiator;
|
|
1282
1284
|
}
|
|
1283
|
-
interface
|
|
1285
|
+
interface ParentContext {
|
|
1284
1286
|
getStatistics(): Statistics;
|
|
1287
|
+
readonly connectionState: Readonly<State>;
|
|
1285
1288
|
}
|
|
1286
1289
|
interface TelemetryModuleListeners {
|
|
1287
1290
|
["visibilitystate"]: VisibilityState;
|
|
1288
1291
|
["pagehide"]: PageTransitionEvent;
|
|
1289
1292
|
["error"]: Readonly<VindralError>;
|
|
1290
1293
|
}
|
|
1294
|
+
interface TelemetryModuleEvents {
|
|
1295
|
+
["send signal"]: Readonly<string>;
|
|
1296
|
+
}
|
|
1291
1297
|
interface TelemetryModuleStatistics {
|
|
1292
1298
|
errorCount: number;
|
|
1293
1299
|
}
|
|
@@ -1298,7 +1304,7 @@ declare class TelemetryModule {
|
|
|
1298
1304
|
private emitter;
|
|
1299
1305
|
private options;
|
|
1300
1306
|
private runtimeInfo;
|
|
1301
|
-
private
|
|
1307
|
+
private parentContext;
|
|
1302
1308
|
private unsentLines;
|
|
1303
1309
|
private retries;
|
|
1304
1310
|
private errorCount;
|
|
@@ -1306,7 +1312,7 @@ declare class TelemetryModule {
|
|
|
1306
1312
|
private statsCount;
|
|
1307
1313
|
private constructor();
|
|
1308
1314
|
unload: () => void;
|
|
1309
|
-
static create: (logger: Logger, emitter: Emitter<TelemetryModuleListeners,
|
|
1315
|
+
static create: (logger: Logger, emitter: Emitter<TelemetryModuleListeners, TelemetryModuleEvents>, options: TelemetryModuleOptions, runtimeInfo: () => Record<string, unknown>, parentContext: ParentContext) => TelemetryModule;
|
|
1310
1316
|
load: () => void;
|
|
1311
1317
|
addStats: ({ isFinal, initiator }?: FlushOptions, extra?: Record<string, unknown>) => void;
|
|
1312
1318
|
addEvent: (event: TelemetryEvent) => void;
|
|
@@ -1368,6 +1374,7 @@ declare class VideoPlayerModule {
|
|
|
1368
1374
|
private onDecodedFrame;
|
|
1369
1375
|
private render;
|
|
1370
1376
|
private renderSample;
|
|
1377
|
+
private stopRender;
|
|
1371
1378
|
}
|
|
1372
1379
|
export interface Modules {
|
|
1373
1380
|
audioPlayer?: AudioPlayerModule;
|
package/package.json
CHANGED