@vindral/web-sdk 4.1.1 → 4.1.2
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/{Cx0ZKpcT.js → C-MEaX21.js} +1 -1
- package/{DWjXKRl8.js → CI-d-Lzb.js} +1 -1
- package/{B3oxL4M1.js → ZD9OGvpf.js} +3074 -3020
- package/cast-sender.d.ts +14 -0
- package/core.d.ts +14 -0
- package/core.js +1 -1
- package/legacy.d.ts +18 -1
- package/legacy.es.js +2950 -2886
- package/legacy.umd.js +9 -9
- package/package.json +1 -1
- package/player.d.ts +23 -2
- package/player.js +540 -502
- package/react.d.ts +23 -2
package/cast-sender.d.ts
CHANGED
|
@@ -104,6 +104,20 @@ interface DrmOptions {
|
|
|
104
104
|
* Query parameters to be added to requests to license servers
|
|
105
105
|
*/
|
|
106
106
|
queryParams?: Record<string, string>;
|
|
107
|
+
/**
|
|
108
|
+
* Widevine options to override default behaviour
|
|
109
|
+
*/
|
|
110
|
+
widevine?: {
|
|
111
|
+
videoRobustness?: string[];
|
|
112
|
+
audioRobustness?: string[];
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Playready options to override default behaviour
|
|
116
|
+
*/
|
|
117
|
+
playready?: {
|
|
118
|
+
videoRobustness?: string[];
|
|
119
|
+
audioRobustness?: string[];
|
|
120
|
+
};
|
|
107
121
|
}
|
|
108
122
|
type Media = "audio" | "video" | "audio+video";
|
|
109
123
|
interface Options {
|
package/core.d.ts
CHANGED
|
@@ -304,6 +304,20 @@ export interface DrmOptions {
|
|
|
304
304
|
* Query parameters to be added to requests to license servers
|
|
305
305
|
*/
|
|
306
306
|
queryParams?: Record<string, string>;
|
|
307
|
+
/**
|
|
308
|
+
* Widevine options to override default behaviour
|
|
309
|
+
*/
|
|
310
|
+
widevine?: {
|
|
311
|
+
videoRobustness?: string[];
|
|
312
|
+
audioRobustness?: string[];
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
* Playready options to override default behaviour
|
|
316
|
+
*/
|
|
317
|
+
playready?: {
|
|
318
|
+
videoRobustness?: string[];
|
|
319
|
+
audioRobustness?: string[];
|
|
320
|
+
};
|
|
307
321
|
}
|
|
308
322
|
/**
|
|
309
323
|
* Type of media.
|
package/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as C, c as I, e as _, f as O, C as D, D as T, I as a, N as A, V as s, g as r } from "./
|
|
1
|
+
import { b as C, c as I, e as _, f as O, C as D, D as T, I as a, N as A, V as s, g as r } from "./ZD9OGvpf.js";
|
|
2
2
|
export {
|
|
3
3
|
C as AUTHENTICATION_EXPIRED_CODE,
|
|
4
4
|
I as AUTHENTICATION_FAILED_CODE,
|
package/legacy.d.ts
CHANGED
|
@@ -307,6 +307,20 @@ export interface DrmOptions {
|
|
|
307
307
|
* Query parameters to be added to requests to license servers
|
|
308
308
|
*/
|
|
309
309
|
queryParams?: Record<string, string>;
|
|
310
|
+
/**
|
|
311
|
+
* Widevine options to override default behaviour
|
|
312
|
+
*/
|
|
313
|
+
widevine?: {
|
|
314
|
+
videoRobustness?: string[];
|
|
315
|
+
audioRobustness?: string[];
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* Playready options to override default behaviour
|
|
319
|
+
*/
|
|
320
|
+
playready?: {
|
|
321
|
+
videoRobustness?: string[];
|
|
322
|
+
audioRobustness?: string[];
|
|
323
|
+
};
|
|
310
324
|
}
|
|
311
325
|
/**
|
|
312
326
|
* Type of media.
|
|
@@ -1676,6 +1690,7 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
|
|
|
1676
1690
|
private hlsUrl;
|
|
1677
1691
|
private element;
|
|
1678
1692
|
private connectingTimeout?;
|
|
1693
|
+
private castingAvailable;
|
|
1679
1694
|
constructor(config: AirPlayConfig);
|
|
1680
1695
|
/**
|
|
1681
1696
|
* True if the instance is casting right now.
|
|
@@ -1687,8 +1702,9 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
|
|
|
1687
1702
|
set channelId(channelId: string);
|
|
1688
1703
|
/**
|
|
1689
1704
|
* Update authentication token on an already established and authenticated connection.
|
|
1705
|
+
* Note: When casting to AirPlay, this will interrupt the current session to apply the new token.
|
|
1690
1706
|
*/
|
|
1691
|
-
updateAuthenticationToken: (
|
|
1707
|
+
updateAuthenticationToken: (token: string) => void;
|
|
1692
1708
|
/**
|
|
1693
1709
|
* Fully unloads the instance. This disconnects the current listeners.
|
|
1694
1710
|
*/
|
|
@@ -1703,6 +1719,7 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
|
|
|
1703
1719
|
static isAirPlaySupported(): boolean;
|
|
1704
1720
|
private onAirPlayAvailable;
|
|
1705
1721
|
private onAirPlayPlaybackChanged;
|
|
1722
|
+
private getHlsUrl;
|
|
1706
1723
|
private checkHlsUrl;
|
|
1707
1724
|
}
|
|
1708
1725
|
/**
|