@vindral/web-sdk 2.2.6 → 2.2.7
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 +7 -1
- package/package.json +1 -1
- package/web-sdk.esm.js +1 -1
- package/web-sdk.umd.js +1 -1
package/index.d.ts
CHANGED
|
@@ -338,7 +338,7 @@ declare class AdaptivityModule {
|
|
|
338
338
|
unload: () => void;
|
|
339
339
|
suspend: () => void;
|
|
340
340
|
unsuspend: () => void;
|
|
341
|
-
reset: () => void;
|
|
341
|
+
reset: (extraGraceTimeMs?: number) => void;
|
|
342
342
|
getStatistics: () => AdaptivityStatistics;
|
|
343
343
|
isQoSOk: (renditionLevel: RenditionLevel) => boolean;
|
|
344
344
|
private onBufferState;
|
|
@@ -896,8 +896,13 @@ declare class LoggerModule {
|
|
|
896
896
|
unload: () => void;
|
|
897
897
|
private onLog;
|
|
898
898
|
}
|
|
899
|
+
interface RecoveredContext {
|
|
900
|
+
error: Error;
|
|
901
|
+
count: number;
|
|
902
|
+
}
|
|
899
903
|
interface MseModuleEvents {
|
|
900
904
|
["error"]: Readonly<VindralError>;
|
|
905
|
+
["recovered from media error"]: Readonly<RecoveredContext>;
|
|
901
906
|
}
|
|
902
907
|
interface MseModuleListeners {
|
|
903
908
|
["init segment"]: Readonly<InitSegment>;
|
|
@@ -919,6 +924,7 @@ declare class MseModule {
|
|
|
919
924
|
private trackContexts;
|
|
920
925
|
private autoRecoverFromMediaErrors;
|
|
921
926
|
private quotaErrorCount;
|
|
927
|
+
private recoveredFromErrorCount;
|
|
922
928
|
constructor(logger: Logger, emitter: Emitter<MseModuleListeners, MseModuleEvents>, mediaElement: HTMLMediaElement, tracks: Track[]);
|
|
923
929
|
static create: (logger: Logger, emitter: Emitter<MseModuleListeners, MseModuleEvents>, mediaElement: HTMLMediaElement, tracks: Track[]) => Promise<MseModule>;
|
|
924
930
|
load: () => void;
|
package/package.json
CHANGED