@vindral/web-sdk 2.2.4 → 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 {
@@ -1382,6 +1385,7 @@ declare class UnpauseModule {
1382
1385
  }
1383
1386
  interface VideoPlayerModuleListeners {
1384
1387
  ["decoded frame"]: Readonly<DecodedSample>;
1388
+ ["error"]: Readonly<VindralError>;
1385
1389
  }
1386
1390
  interface ClockSource {
1387
1391
  readonly currentTime: number;
@@ -1389,6 +1393,8 @@ interface ClockSource {
1389
1393
  interface VideoPlayerStatistics {
1390
1394
  renderedFrameCount: number;
1391
1395
  rendererDroppedFrameCount: number;
1396
+ contextLostCount: number;
1397
+ contextRestoredCount: number;
1392
1398
  }
1393
1399
  declare class VideoPlayerModule {
1394
1400
  private readonly oldTimestampLimit;
@@ -1402,6 +1408,7 @@ declare class VideoPlayerModule {
1402
1408
  private renderedFrameCount;
1403
1409
  private rendererDroppedFrameCount;
1404
1410
  constructor(emitter: Emitter<VideoPlayerModuleListeners, unknown>, logger: Logger, clockSource: ClockSource);
1411
+ load: () => void;
1405
1412
  unload: () => Promise<void>;
1406
1413
  suspend: () => void;
1407
1414
  unsuspend: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vindral/web-sdk",
3
- "version": "2.2.4",
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",