@vindral/web-sdk 2.2.3 → 2.2.5

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
@@ -366,6 +366,7 @@ export declare const DISCONNECTED_BY_EDGE = "disconnected_by_edge";
366
366
  export declare const DECODER_ERROR = "decoder_error";
367
367
  export declare const AUDIO_PLAYER_ERROR = "audio_player_error";
368
368
  export declare const MEDIA_SOURCE_ERROR = "media_source_error";
369
+ export declare const WEBGL_CONTEXT_LOST_ERROR = "webgl_context_lost_error";
369
370
  export declare type ErrorType = "internal" | "external";
370
371
  export declare class VindralError extends Error {
371
372
  private props;
@@ -392,6 +393,7 @@ export declare const channelNotFoundError: (type: ErrorType, source?: Error | un
392
393
  export declare const noIncomingDataError: (source?: Error | undefined) => VindralError;
393
394
  export declare const unableToConnectError: (source?: Error | undefined) => VindralError;
394
395
  export declare const unableToConnectAfterRetriesError: () => VindralError;
396
+ export declare const webglContextError: (source: Error) => VindralError;
395
397
  interface AudioPlayerModuleListeners {
396
398
  ["decoded frame"]: Readonly<DecodedSample>;
397
399
  }
@@ -441,6 +443,7 @@ declare class AudioPlayerModule {
441
443
  play: () => Promise<void>;
442
444
  private resume;
443
445
  private getAudioContext;
446
+ private setupContext;
444
447
  private setGain;
445
448
  }
446
449
  interface BufferTimeConfig {
@@ -1186,7 +1189,8 @@ export declare type Statistics = ModuleStatistics & UserAgentInformation & {
1186
1189
  version: string;
1187
1190
  ip?: string;
1188
1191
  url: string;
1189
- sessionId: string;
1192
+ sessionId?: string;
1193
+ clientId: string;
1190
1194
  uptime: number;
1191
1195
  videoBitRate?: number;
1192
1196
  audioBitRate?: number;
@@ -1212,7 +1216,8 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
1212
1216
  private logger;
1213
1217
  private modules;
1214
1218
  private clientIp?;
1215
- private sessionId;
1219
+ private sessionId?;
1220
+ private clientId;
1216
1221
  private _channels;
1217
1222
  private createdAt;
1218
1223
  private hasCalledConnect;
@@ -1380,6 +1385,7 @@ declare class UnpauseModule {
1380
1385
  }
1381
1386
  interface VideoPlayerModuleListeners {
1382
1387
  ["decoded frame"]: Readonly<DecodedSample>;
1388
+ ["error"]: Readonly<VindralError>;
1383
1389
  }
1384
1390
  interface ClockSource {
1385
1391
  readonly currentTime: number;
@@ -1387,6 +1393,8 @@ interface ClockSource {
1387
1393
  interface VideoPlayerStatistics {
1388
1394
  renderedFrameCount: number;
1389
1395
  rendererDroppedFrameCount: number;
1396
+ contextLostCount: number;
1397
+ contextRestoredCount: number;
1390
1398
  }
1391
1399
  declare class VideoPlayerModule {
1392
1400
  private readonly oldTimestampLimit;
@@ -1400,6 +1408,7 @@ declare class VideoPlayerModule {
1400
1408
  private renderedFrameCount;
1401
1409
  private rendererDroppedFrameCount;
1402
1410
  constructor(emitter: Emitter<VideoPlayerModuleListeners, unknown>, logger: Logger, clockSource: ClockSource);
1411
+ load: () => void;
1403
1412
  unload: () => Promise<void>;
1404
1413
  suspend: () => void;
1405
1414
  unsuspend: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vindral/web-sdk",
3
- "version": "2.2.3",
3
+ "version": "2.2.5",
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",