@vindral/web-sdk 3.0.0 → 3.0.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 +17 -3
- package/index.mjs +10 -2
- package/index.umd.js +5 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ interface Telemetry {
|
|
|
113
113
|
maxErrorReports?: number;
|
|
114
114
|
interval?: number;
|
|
115
115
|
}
|
|
116
|
-
interface ConnectResponse {
|
|
116
|
+
export interface ConnectResponse {
|
|
117
117
|
logsUrl?: string;
|
|
118
118
|
statsUrl?: string;
|
|
119
119
|
telemetry?: Telemetry;
|
|
@@ -314,7 +314,7 @@ export declare class CastSender extends Emitter<CastSenderEvents> {
|
|
|
314
314
|
private castLibrariesAdded;
|
|
315
315
|
private verifyCastLibraries;
|
|
316
316
|
}
|
|
317
|
-
interface TimeRange {
|
|
317
|
+
export interface TimeRange {
|
|
318
318
|
start: number;
|
|
319
319
|
end: number;
|
|
320
320
|
}
|
|
@@ -355,6 +355,14 @@ interface VindralErrorProps {
|
|
|
355
355
|
code: string;
|
|
356
356
|
source?: Error | MediaError;
|
|
357
357
|
}
|
|
358
|
+
export declare const CONNECTION_FAILED_CODE = "connection_failed";
|
|
359
|
+
export declare const CONNECTION_FAILED_AFTER_RETRIES_CODE = "connection_failed_will_not_attempt_again";
|
|
360
|
+
export declare const AUTHENTICATION_FAILED_CODE = "authentication_error";
|
|
361
|
+
export declare const AUTHENTICATION_EXPIRED_CODE = "authentication_expired";
|
|
362
|
+
export declare const CHANNEL_NOT_FOUND_CODE = "channel_not_found";
|
|
363
|
+
export declare const NO_INCOMING_DATA = "no_incoming_data_error";
|
|
364
|
+
export declare const INACTIVITY_CODE = "connection_inactivity";
|
|
365
|
+
export declare const DISCONNECTED_BY_EDGE = "disconnected_by_edge";
|
|
358
366
|
declare type ErrorType = "internal" | "external";
|
|
359
367
|
/**
|
|
360
368
|
* Represents a vindral error - all errors emitted from the Vindral instance inherit from this class.
|
|
@@ -393,10 +401,16 @@ interface ConnectionStatistics {
|
|
|
393
401
|
connectCount: number;
|
|
394
402
|
connectionAttemptCount: number;
|
|
395
403
|
}
|
|
396
|
-
interface RenditionLevel {
|
|
404
|
+
export interface RenditionLevel {
|
|
397
405
|
audio?: AudioRendition;
|
|
398
406
|
video?: VideoRendition;
|
|
399
407
|
}
|
|
408
|
+
declare type RenditionLevelChangedReason = "abr" | "manual";
|
|
409
|
+
export interface RenditionLevelChanged {
|
|
410
|
+
from?: RenditionLevel;
|
|
411
|
+
to?: RenditionLevel;
|
|
412
|
+
reason: RenditionLevelChangedReason;
|
|
413
|
+
}
|
|
400
414
|
interface RenditionLevel {
|
|
401
415
|
audio?: AudioRendition;
|
|
402
416
|
video?: VideoRendition;
|
package/index.mjs
CHANGED
|
@@ -1558,7 +1558,7 @@ class Ls {
|
|
|
1558
1558
|
});
|
|
1559
1559
|
}).catch(() => {
|
|
1560
1560
|
this.enabled = !1;
|
|
1561
|
-
}) : ((e = (A = this.wakeLockVideo) == null ? void 0 : A.play()) != null ? e : Promise.resolve()).then((I) => (this.enabled = !0, I)).catch((
|
|
1561
|
+
}) : ((e = (A = this.wakeLockVideo) == null ? void 0 : A.play()) != null ? e : Promise.resolve()).then((I) => (this.enabled = !0, I)).catch(() => {
|
|
1562
1562
|
this.enabled = !1;
|
|
1563
1563
|
});
|
|
1564
1564
|
});
|
|
@@ -5046,7 +5046,7 @@ const cB = (i, A) => {
|
|
|
5046
5046
|
const e = this.modules.canvasModule ? this.options.get("iosMediaElementEnabled") : void 0;
|
|
5047
5047
|
return r({
|
|
5048
5048
|
uptime: Date.now() - this.createdAt,
|
|
5049
|
-
version: "3.0.
|
|
5049
|
+
version: "3.0.1",
|
|
5050
5050
|
clientId: this.clientId,
|
|
5051
5051
|
sessionId: this.sessionId,
|
|
5052
5052
|
channelId: this.channelId,
|
|
@@ -6370,9 +6370,17 @@ class Zn {
|
|
|
6370
6370
|
}
|
|
6371
6371
|
}
|
|
6372
6372
|
export {
|
|
6373
|
+
Hg as AUTHENTICATION_EXPIRED_CODE,
|
|
6374
|
+
Ng as AUTHENTICATION_FAILED_CODE,
|
|
6373
6375
|
kg as ApiClient,
|
|
6376
|
+
Mg as CHANNEL_NOT_FOUND_CODE,
|
|
6377
|
+
vg as CONNECTION_FAILED_AFTER_RETRIES_CODE,
|
|
6378
|
+
Lg as CONNECTION_FAILED_CODE,
|
|
6374
6379
|
bg as CastSender,
|
|
6380
|
+
xg as DISCONNECTED_BY_EDGE,
|
|
6381
|
+
qg as INACTIVITY_CODE,
|
|
6375
6382
|
De as Level,
|
|
6383
|
+
Pg as NO_INCOMING_DATA,
|
|
6376
6384
|
Zn as Player,
|
|
6377
6385
|
EA as Vindral,
|
|
6378
6386
|
p as VindralError
|