@vindral/web-sdk 4.2.1 → 4.3.0-2-ged356a90
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/{ABGzdpO4.js → BFPgdE3l.js} +6 -6
- package/{D5iA4gy8.js → BdFcdkj1.js} +1 -1
- package/{ST3epwLf.js → Bsr2f02Y.js} +479 -448
- package/{TRlsfsv0.js → ChB5iqY4.js} +2131 -2043
- package/{CF-41rJe.js → CjPLLJi5.js} +2 -1
- package/cast-sender.js +1 -1
- package/core.d.ts +9 -0
- package/core.js +1 -1
- package/legacy.d.ts +9 -0
- package/legacy.es.js +3416 -3328
- package/legacy.umd.js +14 -14
- package/package.json +1 -1
- package/player.d.ts +11 -3
- package/player.js +3 -3
- package/react.d.ts +11 -3
- package/vindral-player-component.js +2 -2
package/package.json
CHANGED
package/player.d.ts
CHANGED
|
@@ -691,6 +691,7 @@ declare class ApiClient {
|
|
|
691
691
|
private toChannels;
|
|
692
692
|
private toChannel;
|
|
693
693
|
}
|
|
694
|
+
type TransportSelectionReason = "unsupported" | "disabled" | "unavailable" | "fallback";
|
|
694
695
|
interface AdaptivityStatistics {
|
|
695
696
|
/**
|
|
696
697
|
* True if adaptive bitrate (ABR) is enabled.
|
|
@@ -1465,6 +1466,14 @@ interface ConnectionStatistics {
|
|
|
1465
1466
|
*/
|
|
1466
1467
|
connectionSuccessRatio: number;
|
|
1467
1468
|
connectionProtocol: "vindral_ws" | "moq" | "moq_ws" | undefined;
|
|
1469
|
+
/**
|
|
1470
|
+
* When connectionProtocol is "moq_ws", indicates why WebSocket was used instead of WebTransport.
|
|
1471
|
+
* - "unsupported": browser doesn't support WebTransport
|
|
1472
|
+
* - "disabled": webtransportEnabled option is false
|
|
1473
|
+
* - "unavailable": edge did not offer a WebTransport endpoint
|
|
1474
|
+
* - "fallback": WebTransport was attempted but failed or timed out
|
|
1475
|
+
*/
|
|
1476
|
+
transportSelectionReason: TransportSelectionReason | undefined;
|
|
1468
1477
|
}
|
|
1469
1478
|
interface LanguageSwitchContext {
|
|
1470
1479
|
/**
|
|
@@ -1841,7 +1850,7 @@ type ControllerAttributes = (typeof Controller.observedAttributes)[number];
|
|
|
1841
1850
|
export declare class Controller extends HTMLElement {
|
|
1842
1851
|
#private;
|
|
1843
1852
|
static observedAttributes: readonly [
|
|
1844
|
-
...("language" | "channels" | "buffering" | "paused" | "volume" | "muted" | "duration" | "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" | "max-initial-bit-rate" | "abr-enabled" | "size-based-resolution-cap-enabled" | "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" | "timeshift" | "timeshift-position" | "poster-src" | "debug-panel-open" | "target-buffer-time" | "drift" | "playback-latency" | "connection-state")[],
|
|
1853
|
+
...("language" | "channels" | "buffering" | "paused" | "volume" | "muted" | "duration" | "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" | "max-initial-bit-rate" | "abr-enabled" | "size-based-resolution-cap-enabled" | "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" | "double-click-fullscreen" | "vu-meter" | "timeshift" | "timeshift-position" | "poster-src" | "debug-panel-open" | "target-buffer-time" | "drift" | "playback-latency" | "connection-state")[],
|
|
1845
1854
|
"url",
|
|
1846
1855
|
"edge-url",
|
|
1847
1856
|
"target-buffer-time",
|
|
@@ -1963,7 +1972,7 @@ export declare class PlayButton extends VindralButton {
|
|
|
1963
1972
|
*/
|
|
1964
1973
|
export declare class Player extends HTMLElement {
|
|
1965
1974
|
#private;
|
|
1966
|
-
static observedAttributes: readonly ("title" | "offline" | "advanced" | "poster" | "language" | "channels" | "buffering" | "paused" | "volume" | "muted" | "duration" | "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" | "max-initial-bit-rate" | "abr-enabled" | "size-based-resolution-cap-enabled" | "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" | "timeshift" | "timeshift-position" | "poster-src" | "debug-panel-open" | "target-buffer-time" | "drift" | "playback-latency" | "connection-state" | "url" | "decoders" | "min-buffer-time" | "max-buffer-time" | "edge-url" | "cast-receiver-id" | "cast-background" | "log-level" | "max-size" | "max-audio-bit-rate" | "burst-enabled" | "mse-enabled" | "mse-opus-enabled" | "ios-background-play-enabled" | "ios-wake-lock-enabled" | "stream-to-media-element-enabled" | "ios-media-element-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" | "webcodecs-hardware-acceleration" | "offscreen-canvas-enabled" | "reconnect-retries" | "auto-instance-enabled" | "advanced-rendition-menu-enabled" | "refresh-poster-enabled" | "stream-poll-enabled")[];
|
|
1975
|
+
static observedAttributes: readonly ("title" | "offline" | "advanced" | "poster" | "language" | "channels" | "buffering" | "paused" | "volume" | "muted" | "duration" | "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" | "max-initial-bit-rate" | "abr-enabled" | "size-based-resolution-cap-enabled" | "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" | "double-click-fullscreen" | "vu-meter" | "timeshift" | "timeshift-position" | "poster-src" | "debug-panel-open" | "target-buffer-time" | "drift" | "playback-latency" | "connection-state" | "url" | "decoders" | "min-buffer-time" | "max-buffer-time" | "edge-url" | "cast-receiver-id" | "cast-background" | "log-level" | "max-size" | "max-audio-bit-rate" | "burst-enabled" | "mse-enabled" | "mse-opus-enabled" | "ios-background-play-enabled" | "ios-wake-lock-enabled" | "stream-to-media-element-enabled" | "ios-media-element-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" | "webcodecs-hardware-acceleration" | "offscreen-canvas-enabled" | "reconnect-retries" | "auto-instance-enabled" | "advanced-rendition-menu-enabled" | "refresh-poster-enabled" | "stream-poll-enabled")[];
|
|
1967
1976
|
constructor();
|
|
1968
1977
|
connectedCallback(): void;
|
|
1969
1978
|
disconnectedCallback(): void;
|
|
@@ -2055,7 +2064,6 @@ declare class VindralMessage extends HTMLElement {
|
|
|
2055
2064
|
static observedAttributes: string[];
|
|
2056
2065
|
constructor();
|
|
2057
2066
|
connectedCallback(): void;
|
|
2058
|
-
disconnectedCallback(): void;
|
|
2059
2067
|
attributeChangedCallback(name: string, old: string, value: string): void;
|
|
2060
2068
|
}
|
|
2061
2069
|
declare class VindralPlayOverlay extends HTMLElement {
|
package/player.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
2
|
-
import "./
|
|
3
|
-
import { t } from "./
|
|
1
|
+
import { t as e } from "./BFPgdE3l.js";
|
|
2
|
+
import "./ChB5iqY4.js";
|
|
3
|
+
import { t } from "./Bsr2f02Y.js";
|
|
4
4
|
export { t as registerComponents, e as registerDebugComponents };
|
package/react.d.ts
CHANGED
|
@@ -693,6 +693,7 @@ declare class ApiClient {
|
|
|
693
693
|
private toChannels;
|
|
694
694
|
private toChannel;
|
|
695
695
|
}
|
|
696
|
+
type TransportSelectionReason = "unsupported" | "disabled" | "unavailable" | "fallback";
|
|
696
697
|
interface AdaptivityStatistics {
|
|
697
698
|
/**
|
|
698
699
|
* True if adaptive bitrate (ABR) is enabled.
|
|
@@ -1467,6 +1468,14 @@ interface ConnectionStatistics {
|
|
|
1467
1468
|
*/
|
|
1468
1469
|
connectionSuccessRatio: number;
|
|
1469
1470
|
connectionProtocol: "vindral_ws" | "moq" | "moq_ws" | undefined;
|
|
1471
|
+
/**
|
|
1472
|
+
* When connectionProtocol is "moq_ws", indicates why WebSocket was used instead of WebTransport.
|
|
1473
|
+
* - "unsupported": browser doesn't support WebTransport
|
|
1474
|
+
* - "disabled": webtransportEnabled option is false
|
|
1475
|
+
* - "unavailable": edge did not offer a WebTransport endpoint
|
|
1476
|
+
* - "fallback": WebTransport was attempted but failed or timed out
|
|
1477
|
+
*/
|
|
1478
|
+
transportSelectionReason: TransportSelectionReason | undefined;
|
|
1470
1479
|
}
|
|
1471
1480
|
interface LanguageSwitchContext {
|
|
1472
1481
|
/**
|
|
@@ -1852,7 +1861,7 @@ type ControllerAttributes = (typeof Controller.observedAttributes)[number];
|
|
|
1852
1861
|
declare class Controller extends HTMLElement {
|
|
1853
1862
|
#private;
|
|
1854
1863
|
static observedAttributes: readonly [
|
|
1855
|
-
...("language" | "channels" | "buffering" | "paused" | "volume" | "muted" | "duration" | "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" | "max-initial-bit-rate" | "abr-enabled" | "size-based-resolution-cap-enabled" | "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" | "timeshift" | "timeshift-position" | "poster-src" | "debug-panel-open" | "target-buffer-time" | "drift" | "playback-latency" | "connection-state")[],
|
|
1864
|
+
...("language" | "channels" | "buffering" | "paused" | "volume" | "muted" | "duration" | "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" | "max-initial-bit-rate" | "abr-enabled" | "size-based-resolution-cap-enabled" | "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" | "double-click-fullscreen" | "vu-meter" | "timeshift" | "timeshift-position" | "poster-src" | "debug-panel-open" | "target-buffer-time" | "drift" | "playback-latency" | "connection-state")[],
|
|
1856
1865
|
"url",
|
|
1857
1866
|
"edge-url",
|
|
1858
1867
|
"target-buffer-time",
|
|
@@ -1975,7 +1984,7 @@ declare class PlayButton extends VindralButton {
|
|
|
1975
1984
|
type PlayerAttributes = (typeof Player.observedAttributes)[number];
|
|
1976
1985
|
declare class Player extends HTMLElement {
|
|
1977
1986
|
#private;
|
|
1978
|
-
static observedAttributes: readonly ("title" | "offline" | "advanced" | "poster" | "language" | "channels" | "buffering" | "paused" | "volume" | "muted" | "duration" | "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" | "max-initial-bit-rate" | "abr-enabled" | "size-based-resolution-cap-enabled" | "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" | "timeshift" | "timeshift-position" | "poster-src" | "debug-panel-open" | "target-buffer-time" | "drift" | "playback-latency" | "connection-state" | "url" | "decoders" | "min-buffer-time" | "max-buffer-time" | "edge-url" | "cast-receiver-id" | "cast-background" | "log-level" | "max-size" | "max-audio-bit-rate" | "burst-enabled" | "mse-enabled" | "mse-opus-enabled" | "ios-background-play-enabled" | "ios-wake-lock-enabled" | "stream-to-media-element-enabled" | "ios-media-element-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" | "webcodecs-hardware-acceleration" | "offscreen-canvas-enabled" | "reconnect-retries" | "auto-instance-enabled" | "advanced-rendition-menu-enabled" | "refresh-poster-enabled" | "stream-poll-enabled")[];
|
|
1987
|
+
static observedAttributes: readonly ("title" | "offline" | "advanced" | "poster" | "language" | "channels" | "buffering" | "paused" | "volume" | "muted" | "duration" | "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" | "max-initial-bit-rate" | "abr-enabled" | "size-based-resolution-cap-enabled" | "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" | "double-click-fullscreen" | "vu-meter" | "timeshift" | "timeshift-position" | "poster-src" | "debug-panel-open" | "target-buffer-time" | "drift" | "playback-latency" | "connection-state" | "url" | "decoders" | "min-buffer-time" | "max-buffer-time" | "edge-url" | "cast-receiver-id" | "cast-background" | "log-level" | "max-size" | "max-audio-bit-rate" | "burst-enabled" | "mse-enabled" | "mse-opus-enabled" | "ios-background-play-enabled" | "ios-wake-lock-enabled" | "stream-to-media-element-enabled" | "ios-media-element-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" | "webcodecs-hardware-acceleration" | "offscreen-canvas-enabled" | "reconnect-retries" | "auto-instance-enabled" | "advanced-rendition-menu-enabled" | "refresh-poster-enabled" | "stream-poll-enabled")[];
|
|
1979
1988
|
constructor();
|
|
1980
1989
|
connectedCallback(): void;
|
|
1981
1990
|
disconnectedCallback(): void;
|
|
@@ -2072,7 +2081,6 @@ declare class VindralMessage extends HTMLElement {
|
|
|
2072
2081
|
static observedAttributes: string[];
|
|
2073
2082
|
constructor();
|
|
2074
2083
|
connectedCallback(): void;
|
|
2075
|
-
disconnectedCallback(): void;
|
|
2076
2084
|
attributeChangedCallback(name: string, old: string, value: string): void;
|
|
2077
2085
|
}
|
|
2078
2086
|
type PlayOverlayAttributes = (typeof VindralPlayOverlay.observedAttributes)[number];
|