@vindral/web-sdk 4.2.0-7-g7d6ca07f → 4.2.0-9-g20d8006e

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/player.d.ts CHANGED
@@ -1161,6 +1161,14 @@ declare class Vindral extends Emitter<PublicVindralEvents> {
1161
1161
  * setting targetBufferTime within that range for consistancy if using both min/max.
1162
1162
  */
1163
1163
  set targetBufferTime(bufferTimeMs: number);
1164
+ /**
1165
+ * Update the dynamic buffer time configuration at runtime.
1166
+ * Allows adjusting min and max buffer time without recreating the Vindral instance.
1167
+ */
1168
+ updateBufferTimeConfig(config: {
1169
+ minBufferTime?: number;
1170
+ maxBufferTime?: number;
1171
+ }): void;
1164
1172
  /**
1165
1173
  * The estimated playback latency based on target buffer time, the connection rtt and local playback drift
1166
1174
  */
@@ -1830,7 +1838,7 @@ type ControllerAttributes = (typeof Controller.observedAttributes)[number];
1830
1838
  export declare class Controller extends HTMLElement {
1831
1839
  #private;
1832
1840
  static observedAttributes: readonly [
1833
- ...("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")[],
1841
+ ...("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")[],
1834
1842
  "url",
1835
1843
  "edge-url",
1836
1844
  "target-buffer-time",
@@ -1952,7 +1960,7 @@ export declare class PlayButton extends VindralButton {
1952
1960
  */
1953
1961
  export declare class Player extends HTMLElement {
1954
1962
  #private;
1955
- 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" | "url" | "decoders" | "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" | "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")[];
1963
+ 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")[];
1956
1964
  constructor();
1957
1965
  connectedCallback(): void;
1958
1966
  disconnectedCallback(): void;
@@ -2069,6 +2077,14 @@ export declare class VolumeRange extends VindralRange {
2069
2077
  * Register custom elements for the Vindral player
2070
2078
  */
2071
2079
  export declare function registerComponents(): void;
2080
+ /**
2081
+ * Register debug custom elements for the Vindral player.
2082
+ *
2083
+ * Call this in addition to `registerComponents()` to enable the debug button and panel.
2084
+ * Without calling this, `<vindral-debug-button>` and `<vindral-debug-panel>` remain
2085
+ * inert and the debug code is tree-shaken from the bundle.
2086
+ */
2087
+ export declare function registerDebugComponents(): void;
2072
2088
  /**
2073
2089
  * @ignore
2074
2090
  */
package/player.js CHANGED
@@ -1,3 +1,4 @@
1
- import "./D4BVrOMF.js";
2
- import { t as e } from "./CnCQ_flD.js";
3
- export { e as registerComponents };
1
+ import { t as e } from "./DAUPyLMi.js";
2
+ import "./qbVRZqFN.js";
3
+ import { t } from "./Cv0Lr_8z.js";
4
+ export { t as registerComponents, e as registerDebugComponents };