@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/package.json
CHANGED
package/player.d.ts
CHANGED
|
@@ -282,6 +282,20 @@ interface DrmOptions {
|
|
|
282
282
|
* Query parameters to be added to requests to license servers
|
|
283
283
|
*/
|
|
284
284
|
queryParams?: Record<string, string>;
|
|
285
|
+
/**
|
|
286
|
+
* Widevine options to override default behaviour
|
|
287
|
+
*/
|
|
288
|
+
widevine?: {
|
|
289
|
+
videoRobustness?: string[];
|
|
290
|
+
audioRobustness?: string[];
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* Playready options to override default behaviour
|
|
294
|
+
*/
|
|
295
|
+
playready?: {
|
|
296
|
+
videoRobustness?: string[];
|
|
297
|
+
audioRobustness?: string[];
|
|
298
|
+
};
|
|
285
299
|
}
|
|
286
300
|
type Media = "audio" | "video" | "audio+video";
|
|
287
301
|
interface Options {
|
|
@@ -1525,6 +1539,7 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
|
|
|
1525
1539
|
private hlsUrl;
|
|
1526
1540
|
private element;
|
|
1527
1541
|
private connectingTimeout?;
|
|
1542
|
+
private castingAvailable;
|
|
1528
1543
|
constructor(config: AirPlayConfig);
|
|
1529
1544
|
/**
|
|
1530
1545
|
* True if the instance is casting right now.
|
|
@@ -1536,8 +1551,9 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
|
|
|
1536
1551
|
set channelId(channelId: string);
|
|
1537
1552
|
/**
|
|
1538
1553
|
* Update authentication token on an already established and authenticated connection.
|
|
1554
|
+
* Note: When casting to AirPlay, this will interrupt the current session to apply the new token.
|
|
1539
1555
|
*/
|
|
1540
|
-
updateAuthenticationToken: (
|
|
1556
|
+
updateAuthenticationToken: (token: string) => void;
|
|
1541
1557
|
/**
|
|
1542
1558
|
* Fully unloads the instance. This disconnects the current listeners.
|
|
1543
1559
|
*/
|
|
@@ -1552,6 +1568,7 @@ declare class AirPlaySender extends Emitter<AirPlaySenderEvents> {
|
|
|
1552
1568
|
static isAirPlaySupported(): boolean;
|
|
1553
1569
|
private onAirPlayAvailable;
|
|
1554
1570
|
private onAirPlayPlaybackChanged;
|
|
1571
|
+
private getHlsUrl;
|
|
1555
1572
|
private checkHlsUrl;
|
|
1556
1573
|
}
|
|
1557
1574
|
type ControllerAttributes = (typeof Controller.observedAttributes)[number];
|
|
@@ -1583,6 +1600,10 @@ export declare class Controller extends HTMLElement {
|
|
|
1583
1600
|
"advanced",
|
|
1584
1601
|
"drm-headers",
|
|
1585
1602
|
"drm-queryparams",
|
|
1603
|
+
"drm-widevine-video-robustness",
|
|
1604
|
+
"drm-widevine-audio-robustness",
|
|
1605
|
+
"drm-playready-video-robustness",
|
|
1606
|
+
"drm-playready-audio-robustness",
|
|
1586
1607
|
"webtransport-enabled",
|
|
1587
1608
|
"reconnect-retries",
|
|
1588
1609
|
"auto-instance-enabled",
|
|
@@ -1674,7 +1695,7 @@ export declare class PlayButton extends VindralButton {
|
|
|
1674
1695
|
}
|
|
1675
1696
|
export declare class Player extends HTMLElement {
|
|
1676
1697
|
#private;
|
|
1677
|
-
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")[];
|
|
1698
|
+
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")[];
|
|
1678
1699
|
constructor();
|
|
1679
1700
|
connectedCallback(): void;
|
|
1680
1701
|
disconnectedCallback(): void;
|