@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/react.d.ts
CHANGED
|
@@ -284,6 +284,20 @@ interface DrmOptions {
|
|
|
284
284
|
* Query parameters to be added to requests to license servers
|
|
285
285
|
*/
|
|
286
286
|
queryParams?: Record<string, string>;
|
|
287
|
+
/**
|
|
288
|
+
* Widevine options to override default behaviour
|
|
289
|
+
*/
|
|
290
|
+
widevine?: {
|
|
291
|
+
videoRobustness?: string[];
|
|
292
|
+
audioRobustness?: string[];
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* Playready options to override default behaviour
|
|
296
|
+
*/
|
|
297
|
+
playready?: {
|
|
298
|
+
videoRobustness?: string[];
|
|
299
|
+
audioRobustness?: string[];
|
|
300
|
+
};
|
|
287
301
|
}
|
|
288
302
|
type Media = "audio" | "video" | "audio+video";
|
|
289
303
|
interface Options {
|
|
@@ -1534,6 +1548,7 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
|
|
|
1534
1548
|
private hlsUrl;
|
|
1535
1549
|
private element;
|
|
1536
1550
|
private connectingTimeout?;
|
|
1551
|
+
private castingAvailable;
|
|
1537
1552
|
constructor(config: AirPlayConfig);
|
|
1538
1553
|
/**
|
|
1539
1554
|
* True if the instance is casting right now.
|
|
@@ -1545,8 +1560,9 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
|
|
|
1545
1560
|
set channelId(channelId: string);
|
|
1546
1561
|
/**
|
|
1547
1562
|
* Update authentication token on an already established and authenticated connection.
|
|
1563
|
+
* Note: When casting to AirPlay, this will interrupt the current session to apply the new token.
|
|
1548
1564
|
*/
|
|
1549
|
-
updateAuthenticationToken: (
|
|
1565
|
+
updateAuthenticationToken: (token: string) => void;
|
|
1550
1566
|
/**
|
|
1551
1567
|
* Fully unloads the instance. This disconnects the current listeners.
|
|
1552
1568
|
*/
|
|
@@ -1561,6 +1577,7 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
|
|
|
1561
1577
|
static isAirPlaySupported(): boolean;
|
|
1562
1578
|
private onAirPlayAvailable;
|
|
1563
1579
|
private onAirPlayPlaybackChanged;
|
|
1580
|
+
private getHlsUrl;
|
|
1564
1581
|
private checkHlsUrl;
|
|
1565
1582
|
}
|
|
1566
1583
|
type ControllerAttributes = (typeof Controller.observedAttributes)[number];
|
|
@@ -1592,6 +1609,10 @@ declare class Controller extends HTMLElement {
|
|
|
1592
1609
|
"advanced",
|
|
1593
1610
|
"drm-headers",
|
|
1594
1611
|
"drm-queryparams",
|
|
1612
|
+
"drm-widevine-video-robustness",
|
|
1613
|
+
"drm-widevine-audio-robustness",
|
|
1614
|
+
"drm-playready-video-robustness",
|
|
1615
|
+
"drm-playready-audio-robustness",
|
|
1595
1616
|
"webtransport-enabled",
|
|
1596
1617
|
"reconnect-retries",
|
|
1597
1618
|
"auto-instance-enabled",
|
|
@@ -1690,7 +1711,7 @@ declare class PlayButton extends VindralButton {
|
|
|
1690
1711
|
type PlayerAttributes = (typeof Player.observedAttributes)[number];
|
|
1691
1712
|
declare class Player extends HTMLElement {
|
|
1692
1713
|
#private;
|
|
1693
|
-
static observedAttributes: readonly ("title" | "advanced" | "poster" | "language" | "channels" | "buffering" | "paused" | "volume" | "muted" | "user-interacting" | "is-casting" | "cast-available" | "cast-receiver-name" | "ui-locked" | "hide-ui-on-pause" | "is-fullscreen" | "is-fullscreen-fallback" | "rendition-levels" | "rendition-level" | "max-video-bit-rate" | "channel-id" | "channel-group-id" | "pip-available" | "is-pip" | "airplay-available" | "is-airplaying" | "media" | "languages" | "text-tracks" | "text-track" | "needs-user-input-video" | "needs-user-input-audio" | "authentication-token" | "volume-level" | "cast" | "airplay" | "pip" | "fullscreen" | "vu-meter" | "poster-src" | "url" | "offline" | "edge-url" | "target-buffer-time" | "cast-receiver-id" | "cast-background" | "log-level" | "max-size" | "min-buffer-time" | "max-buffer-time" | "max-audio-bit-rate" | "burst-enabled" | "mse-enabled" | "mse-opus-enabled" | "ios-background-play-enabled" | "ios-wake-lock-enabled" | "ios-media-element-enabled" | "abr-enabled" | "size-based-resolution-cap-enabled" | "telemetry-enabled" | "video-codecs" | "drm-headers" | "drm-queryparams" | "webtransport-enabled" | "reconnect-retries" | "auto-instance-enabled" | "refresh-poster-enabled" | "stream-poll-enabled")[];
|
|
1714
|
+
static observedAttributes: readonly ("title" | "advanced" | "poster" | "language" | "channels" | "buffering" | "paused" | "volume" | "muted" | "user-interacting" | "is-casting" | "cast-available" | "cast-receiver-name" | "ui-locked" | "hide-ui-on-pause" | "is-fullscreen" | "is-fullscreen-fallback" | "rendition-levels" | "rendition-level" | "max-video-bit-rate" | "channel-id" | "channel-group-id" | "pip-available" | "is-pip" | "airplay-available" | "is-airplaying" | "media" | "languages" | "text-tracks" | "text-track" | "needs-user-input-video" | "needs-user-input-audio" | "authentication-token" | "volume-level" | "cast" | "airplay" | "pip" | "fullscreen" | "vu-meter" | "poster-src" | "url" | "offline" | "edge-url" | "target-buffer-time" | "cast-receiver-id" | "cast-background" | "log-level" | "max-size" | "min-buffer-time" | "max-buffer-time" | "max-audio-bit-rate" | "burst-enabled" | "mse-enabled" | "mse-opus-enabled" | "ios-background-play-enabled" | "ios-wake-lock-enabled" | "ios-media-element-enabled" | "abr-enabled" | "size-based-resolution-cap-enabled" | "telemetry-enabled" | "video-codecs" | "drm-headers" | "drm-queryparams" | "drm-widevine-video-robustness" | "drm-widevine-audio-robustness" | "drm-playready-video-robustness" | "drm-playready-audio-robustness" | "webtransport-enabled" | "reconnect-retries" | "auto-instance-enabled" | "refresh-poster-enabled" | "stream-poll-enabled")[];
|
|
1694
1715
|
constructor();
|
|
1695
1716
|
connectedCallback(): void;
|
|
1696
1717
|
disconnectedCallback(): void;
|