import { DetailedHTMLProps, HtmlHTMLAttributes } from 'react';
interface Channel {
/**
* Channel ID for the channel
*/
channelId: string;
/**
* Display name
*/
name: string;
/**
* Indicates whether there is an incoming source feed for the channel
*/
isLive: boolean;
/**
* URLs to fetch thumbnail from
*/
thumbnailUrls: string[];
/**
* Urls for timeshift if available
*/
timeshiftUrls?: string[];
}
interface MinMaxAverage {
last: number;
/**
* Average value over a given interval.
*/
average: number;
/**
* Maximum value over a given interval.
*/
max: number;
/**
* Minimum value over a given interval.
*/
min: number;
}
type NavigatorEffectiveType = "2g" | "3g" | "4g" | "slow-2g";
type NavigatorConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi" | "wimax";
interface NavigatorConnectionStatistics {
navigatorRtt?: number;
navigatorEffectiveType?: NavigatorEffectiveType;
navigatorConnectionType?: NavigatorConnectionType;
navigatorSaveData?: boolean;
navigatorDownlink?: number;
}
type MatchingKeys = K extends (TRecord[K] extends TMatch ? K : never) ? K : never;
type VoidKeys = MatchingKeys;
type EventListenerReturnType = (() => void) | void;
declare class Emitter = VoidKeys, ArgEvents extends Exclude = Exclude, ArgLessEmits extends VoidKeys = VoidKeys, ArgEmits extends Exclude = Exclude> {
private listeners;
/**
* Called when a listener or a deferred function throws. Rethrows by default, which stops the dispatch;
* an override that returns lets the remaining listeners and deferred functions run.
*/
protected handleListenerError(error: unknown, _eventName: PropertyKey): void;
emit(eventName: T): void;
emit(eventName: T, args: TEmits[T]): void;
/**
* Remove an event listener from `eventName`
*/
off(eventName: T, fn: () => EventListenerReturnType): void;
off(eventName: T, fn: (args: TEvents[T]) => EventListenerReturnType): void;
/**
* Add an event listener to `eventName`
*
* Event listeners may optionally return a "defer function" that will be called once all other listeners have been called.
* This is useful when one listener may want everone to have reacted to an event before calling something.
*/
on(eventName: T, fn: () => void): void;
on(eventName: T, fn: (args: TEvents[T]) => void): void;
/**
* Add an event listener to `eventName` that will be called once only
*
* Event listeners may optionally return a "defer function" that will be called once all other listeners have been called.
* This is useful when one listener may want everone to have reacted to an event before calling something.
*/
once(eventName: T, fn: () => void): void;
once(eventName: T, fn: (args: TEvents[T]) => void): void;
/**
* Check whether there are any listeners registered for the given event.
*/
hasListeners(eventName: T): boolean;
/**
* Reset the event emitter
*/
reset(): void;
private add;
}
declare const LogLevels: readonly [
"off",
"error",
"warn",
"info",
"debug",
"trace"
];
type LogLevel = (typeof LogLevels)[number];
declare const LogLevel: {
ERROR: "error";
WARN: "warn";
INFO: "info";
DEBUG: "debug";
TRACE: "trace";
OFF: "off";
};
declare const tags: unique symbol;
type Tagged = BaseType & {
[tags]: {
[K in Tag]: void;
};
};
declare class UserAgentInformation {
private highEntropyValues?;
constructor();
getUserAgentInformation(): {
locationOrigin: string;
locationPath: string;
ancestorOrigins: string[] | undefined;
hardwareConcurrency: number;
deviceMemory: number | undefined;
maxTouchPoints: number;
userAgentLegacy: string;
ua: {
browser: {
brands: string[];
fullVersionBrands: string[];
majorVersions: string[];
};
device: string;
mobile: boolean | undefined;
formFactors: string[] | undefined;
os: {
family: string;
version: string;
major_version: number;
};
};
} | {
locationOrigin: string;
locationPath: string;
ancestorOrigins: string[] | undefined;
hardwareConcurrency: number;
deviceMemory: number | undefined;
maxTouchPoints: number;
userAgent: string;
};
}
type AudioCodec = "aac" | "opus" | "mp3";
type VideoCodec = "h264" | "h265" | "av1";
interface ReconnectState {
/**
* The number or retry attempts so far.
* This gets reset on every successful connect, so it will start from zero every
* time the client instance gets disconnected and will increment until the
* client instance makes a connection attempt is successful.
*/
reconnectRetries: number;
}
interface Size {
/** */
width: number;
/** */
height: number;
}
interface AdvancedOptions {
}
interface DrmOptions {
/**
* Headers to be added to requests to license servers
*/
headers?: Record;
/**
* Query parameters to be added to requests to license servers
*/
queryParams?: Record;
/**
* Widevine options to override default behaviour
*/
widevine?: {
videoRobustness?: string[];
audioRobustness?: string[];
};
/**
* Playready options to override default behaviour
*/
playready?: {
videoRobustness?: string[];
audioRobustness?: string[];
};
}
type Media = "audio" | "video" | "audio+video";
type WebCodecsHardwareAccelerationPreference = "no-preference" | "prefer-hardware" | "prefer-software";
type DecoderType = "mse" | "webcodecs" | "wasm";
interface MediaSessionMetadata {
title?: string;
artist?: string;
album?: string;
/** Fetched by the operating system, so the URLs should not carry credentials. */
artwork?: Array<{
src: string;
sizes?: string;
type?: string;
}>;
}
interface Options {
/**
* URL to use when connecting to the stream
*/
url: string;
/**
* Channel ID to connect to initially - can be changed later mid-stream when connected to a channel group.
*/
channelId: string;
/**
* Channel group to connect to
* Note: Only needed for fast channel switching
*/
channelGroupId?: string;
/**
* A container to attach the video view in - can be provided later with .attach() on the vindral core instance
*/
container?: HTMLElement;
/**
* An authentication token to provide to the server when connecting - only needed for channels with authentication enabled
* Note: If not supplied when needed, an "Authentication Failed" error will be raised.
*/
authenticationToken?: string;
/**
* Language to use initially - can be changed during during runtime on the vindral instance
* Note: Only needed when multiple languages are provided - if no language is specified, one will be automatically selected.
*/
language?: string;
/**
* TextTrack to use initially - can be changed during during runtime on the vindral instance
*/
textTrack?: string;
/**
* Sets the log level - defaults to info
*/
logLevel?: LogLevel;
/**
* Sets the minimum and initial buffer time
*/
minBufferTime?: number;
/**
* Sets the maximum buffer time allowed. The vindral instance will automatically slowly increase
* the buffer time if the use experiences to much buffering with the initial buffer time.
*/
maxBufferTime?: number;
/**
* Enables or disables user bandwidth savings by capping the video resolution to the size of the video element.
*
* Is enabled by default.
*
* Note: This is automatically set to false when abrEnabled is set to false.
*/
sizeBasedResolutionCapEnabled?: boolean;
/**
* Enables or disables picture in picture support.
*/
pictureInPictureEnabled?: boolean;
/**
* Enable bursting for initial connection and channel switches. This makes time to first frame faster at the
* cost of stability (more demanding due to the sudden burst of live content)
*
* With bursting and adaptive bit rate on, playback starts at a rendition whose bit rate is at most half the
* estimated bandwidth, so the link can catch up with the burst, and adaptive bit rate then steps up. It never
* starts below the lowest rendition. If the rendition it starts at still needs more than half the estimated
* bandwidth (the lowest one on a slow link, or the fixed one with adaptive bit rate off), the burst is skipped.
*
* Is enabled by default.
*
*/
burstEnabled?: boolean;
/**
* @deprecated Use `decoders` instead.
* Setting `mseEnabled: false` is equivalent to `decoders: ["wasm"]`.
* When both `mseEnabled` and `decoders` are provided, `decoders` takes precedence.
*/
mseEnabled?: boolean;
/**
* Enable Opus with the MediaSource API on supported browsers.
*
* Is enabled by default.
*
*/
mseOpusEnabled?: boolean;
/**
* Keep playback running while the page is in the background. Enabled by default.
* When disabled, the session disconnects while hidden and reconnects when visible.
*
* Browser media policies still apply; iOS Safari pauses hidden video regardless.
* Call `play()` again from a user gesture or media-control action to resume.
*
* When enabled, hidden sessions that are muted outside Picture-in-Picture or browser-paused
* are disconnected after the inactivity timeout; an explicit `pause()` disconnects at once.
*/
backgroundPlayEnabled?: boolean;
/**
* @deprecated Use `backgroundPlayEnabled` instead.
*
* Legacy alias kept for backwards compatibility.
*/
iosBackgroundPlayEnabled?: boolean;
/**
* Show the stream in the browser and OS media controls (notification, lock screen, toolbar) and
* let play and pause from there reach the SDK. Enabled by default.
*
* The SDK takes over `navigator.mediaSession` for the document, so a page with its own Media
* Session integration should disable this. On canvas playback paths a silent `` element is
* added to `document.body` for the controls to attach to.
*/
mediaSessionEnabled?: boolean;
/**
* Title, artist and artwork for the media controls. Without it the browser derives them from the
* page. Read once at construction.
*/
mediaSessionMetadata?: MediaSessionMetadata;
/**
* Enable or disable Adaptive Bit Rate. This allows for automatically adapting the incoming bit rate based on
* the viewers bandwidth and thus avoiding buffering events. This also disables the
* sizeBasedResolutionCapEnabled option.
*
* Is enabled by default.
*
* Note: It is strongly recommended to keep this enabled as user experience can greatly suffer without ABR.
*/
abrEnabled?: boolean;
/**
* Enable or disable telemetry. This allows for telemetry and errors being collected.
*
* Is enabled by default.
*
* We appreciate you turning it off during development/staging to not bloat real telemetry data.
*
* Note: It is strongly recommended to keep this enabled in production as it is required for insights and KPIs.
*/
telemetryEnabled?: boolean;
/**
* Set a cap on the maximum video size.
* This can be used to provide user options to limit the video bandwidth usage.
*
* Note: This takes presedence over any size based resolution caps.
*/
maxSize?: Size;
/**
* Maximum audio bit rate allowed.
* This can be used to provide user options to limit the audio bandwidth usage.
*/
maxAudioBitRate?: number;
/**
* Maximum video bit rate allowed.
* This can be used to provide user options to limit the video bandwidth usage.
*/
maxVideoBitRate?: number;
/**
* Initial maximum bit rate cap applied when first connecting to a channel.
* This helps prevent buffering on initial connection by starting at a conservative bitrate.
* The client will adapt to higher bitrates as bandwidth allows if ABR is enabled.
*
* Default is 2.5 Mbps (2500000 bits per second).
*/
maxInitialBitRate?: number;
/**
* Controls video element background behaviour while loading.
* - If `false`, a black background will be shown.
* - If undefined or `true`, a live thumbnail will be shown.
* - If set to a string containing a URL (https://urltoimage), use that.
* Default `true` - meaning a live thumbnail is shown
*/
poster?: boolean | string;
/**
* Whether to start the player muted or to try to start playing audio automatically.
*/
muted?: boolean;
/**
* Initial volume level for the player. A floating point value between 0-1.
* Default is 1 (100% volume).
*
* Note: Volume cannot be set on iOS devices due to system restrictions.
* The volume property is not settable in JavaScript on iOS, and reading it always returns 1.
*/
volume?: number;
/**
* Provide a custom reconnect handler to control when the instance should stop trying to
* reconnect. The reconnect handler should either return true to allow the reconnect or
* false to stop reconnecting. It can also return a promise with true or false if it needs
* to make any async calls before determining wether to reconnect.
*
* The default reconnect handler allows 30 reconnects before stopping. If a custom handler throws or its promise
* rejects, for example when a fetch fails during the outage, the default rule decides that attempt instead, counting
* only the failed reconnects since the handler last answered. The first such failure of a player instance is
* reported as an uncaught error, with the original as its `cause`.
*
* Set your own limit in the handler, for example `({ reconnectRetries }) => reconnectRetries < 100`. The fallback for
* a failing handler is fixed; to keep your limit when, say, a fetch inside the handler fails, catch that failure and
* return your own answer.
*
* Note: the ReconnectState gets reset every time the client instance makes a successful connection.
* This means the default reconnect handler will only stop reconnecting after 30 _consecutive_ failed connections.
*
* While the page is hidden or the browser reports offline, a failure counts toward `reconnectRetries` only when the
* server answered: the channel is not live or not found, or the connect request got a 4xx other than 408 or 429.
* Hidden retries back off up to 30 seconds; offline retries wait for the network to return, at most 30 seconds.
*
* ```typescript
* // An example reconnect handler that will reconnect forever
* const reconnectHandler = (state: ReconnectState) => true
*
* // An example reconnect handler that will fetch an url and determine whether to reconnect
* const reconnectHandler = async (state: ReconnectState) => {
* const result = await fetch("https://should-i-reconnect-now.com")
* return result.ok
* },
* ```
*/
reconnectHandler?: (state: ReconnectState) => Promise | boolean;
tags?: string[];
ownerSessionId?: string;
edgeUrl?: string;
logShippingEnabled?: boolean;
statsShippingEnabled?: boolean;
webtransportEnabled?: boolean;
/**
* Use WebTransport for MoQ on browsers where it is unstable. When false, these connect MoQ over
* WebSocket directly. Unstable browsers:
* - Safari and every iOS/iPadOS browser (all WebKit): far more buffering than over WebSocket.
* - Samsung Internet on Tizen Smart TVs: WebTransport connects fail and fall back to WebSocket.
*
* Has no effect when webtransportEnabled is false.
*
* Default is false.
*/
unstableWebtransportEnabled?: boolean;
/**
* Enable wake lock for iOS devices.
* The wake lock requires that the audio has been activated at least once for the instance, othwerwise it will not work.
* Other devices already provide wake lock by default.
*
* This option is redundant and has no effect if streamToMediaElementEnabled is enabled since that automatically enables wake lock.
*
* Disabled by default.
*/
iosWakeLockEnabled?: boolean;
/**
* Disabling this will revert to legacy behaviour where Vindral will try to always keep the video element playing.
*/
pauseSupportEnabled?: boolean;
/**
* Stream canvas-rendered video/audio to a media element via captureStream.
*
* This enables platform media features such as fullscreen and picture-in-picture
* for non-MSE playback by routing the canvas output through a `` element.
*
* On iOS the audio then plays from its own element, so it continues in the background and under
* lock. After an extended pause from the lock screen, reopening Safari may be required to resume.
*
* Disabled by default.
*/
streamToMediaElementEnabled?: boolean;
/**
* @deprecated Use `streamToMediaElementEnabled` instead.
*
* Legacy alias kept for backwards compatibility.
*/
iosMediaElementEnabled?: boolean;
/**
* Hardware acceleration preference for WebCodecs video decoding.
*
* Defaults to `"no-preference"`.
*/
webcodecsHardwareAcceleration?: WebCodecsHardwareAccelerationPreference;
/**
* Enable OffscreenCanvas rendering in worker thread.
*
* When enabled, video rendering happens in the worker thread using OffscreenCanvas.
* Automatically enabled when `decoders` resolves to WebCodecs. Set to `false`
* to explicitly disable even when WebCodecs is active.
*
* Requires browser support for OffscreenCanvas and WebCodecs.
* Works with `streamToMediaElementEnabled` for fullscreen/PiP support.
*/
offscreenCanvasEnabled?: boolean;
/**
* Ordered list of decoders to try.
*
* The runtime walks the list and uses the first decoder that is available on the
* current platform. When DRM is active, MSE is forced regardless of order.
*
* When omitted, the platform default order is used (`["mse", "wasm"]`).
*
* @example
* // Prefer WebCodecs over MSE
* decoders: ["webcodecs", "mse", "wasm"]
*/
decoders?: DecoderType[];
/**
* Advanced options to override default behaviour.
*/
advanced?: AdvancedOptions;
media?: Media;
videoCodecs?: VideoCodec[];
/**
* DRM options to provide to the Vindral instance
*/
drm?: DrmOptions;
}
interface ClientOverrides {
maxVideoBitRate?: number;
minBufferTime?: number;
maxBufferTime?: number;
burstEnabled?: boolean;
sizeBasedResolutionCapEnabled?: boolean;
webcodecsHardwareAcceleration?: WebCodecsHardwareAccelerationPreference;
offscreenCanvasEnabled?: boolean;
videoCodecs?: string[];
}
type Namespace = Tagged, "Namespace">;
interface TrackObject {
namespace?: Namespace;
name: string;
format: string;
label?: string;
renderGroup?: number;
altGroup?: number;
initData?: string;
initTrack?: string;
depends?: Array;
temporalId?: number;
spatialId?: number;
codec?: string;
mimeType?: string;
framerate?: [
number,
number
];
bitrate?: number;
width?: number;
height?: number;
samplerate?: number;
channelConfig?: string;
displayWidth?: number;
displayHeight?: number;
language?: string;
"com.vindral.variant_uid"?: string;
"com.vindral.drm"?: string;
}
interface CatalogRoot {
version: number;
streamingFormat?: number;
streamingFormatVersion?: string;
}
interface TracksCatalog extends CatalogRoot {
namespace: Namespace;
tracks: Array;
}
interface RenditionProps {
id: number;
/** */
bitRate: number;
/** */
codecString?: string;
/** */
language?: string;
/** */
meta?: Record;
}
interface VideoRenditionProps {
/** */
codec: VideoCodec;
/** */
frameRate: [
number,
number
];
/** */
width: number;
/** */
height: number;
}
interface AudioRenditionProps {
/** */
codec: AudioCodec;
/** */
channels: number;
/** */
sampleRate: number;
}
interface TextRenditionProps {
codec: "webvtt";
kind: "subtitles" | "captions";
label?: string;
}
type VideoRendition = VideoRenditionProps & RenditionProps;
type AudioRendition = AudioRenditionProps & RenditionProps;
type TextRendition = TextRenditionProps & RenditionProps;
type Rendition = VideoRendition | AudioRendition | TextRendition;
interface Telemetry {
url: string;
probability?: number;
includeErrors?: boolean;
includeEvents?: boolean;
includeStats?: boolean;
maxRetries?: number;
maxErrorReports?: number;
interval?: number;
}
interface ChannelWithCatalog extends Channel {
catalog: TracksCatalog;
renditions: Rendition[];
overrides?: ClientOverrides;
}
interface ChannelWithRenditions extends Channel {
renditions: Rendition[];
overrides?: ClientOverrides;
}
interface ServerCertificateHash {
algorithm: string;
value: string;
}
interface Edge {
moqUrl?: string;
moqWsUrl: string;
serverCertificateHashes?: ServerCertificateHash[];
}
interface MoQConnectInfo {
logsUrl?: string;
statsUrl?: string;
telemetry?: Telemetry;
channels: ChannelWithCatalog[];
edges: Edge[];
timeshift: {
urls: string[];
duration: string;
};
}
interface VindralConnectInfo {
logsUrl?: string;
statsUrl?: string;
telemetry?: Telemetry;
channels: ChannelWithRenditions[];
edges: string[];
}
type ConnectInfo = VindralConnectInfo | MoQConnectInfo;
interface Metadata {
/**
* The raw string content as it was ingested (if using JSON, it needs to be parsed on your end)
*/
content: string;
/**
* Timestamp in ms
*/
timestamp: number;
}
interface TimeRange {
/** */
start: number;
/** */
end: number;
}
interface RenditionLevel {
/** */
audio?: AudioRendition;
/** */
video?: VideoRendition;
}
interface VindralErrorProps {
isFatal: boolean;
type?: ErrorType;
code: string;
source?: Error | MediaError;
}
type ErrorType = "internal" | "external";
declare class VindralError extends Error {
private props;
private extra;
constructor(message: string, props: VindralErrorProps, extra?: {});
/**
* The error code is a stable string that represents the error type - this should be treated as an
* opaque string that can be used as a key for looking up localized strings for displaying error messages.
* @returns the error code
*/
code: () => string;
/**
* Indicates whether the error is fatal - if it is that means the Vindral instance will be unloaded because of this error.
*/
isFatal: () => boolean;
/**
* The underlying error that caused the Vindral error
* @returns the underlying error
*/
source: () => Error | MediaError | undefined;
type: () => ErrorType;
/**
* @returns a stringifiable represenation of the error
*/
toStringifiable: () => Record;
}
type PlaybackState = "buffering" | "playing" | "paused";
type BufferStateEvent = "filled" | "drained";
interface PlaybackModuleStatistics {
/**
* Current target buffer time if using dynamic buffer. Otherwise, this is the statically set buffer time from instantiation.
*/
bufferTime: number;
needsInputForAudioCount: number;
needsInputForVideoCount: number;
}
interface NeedsUserInputContext {
/**
* True if user input is needed for audio
*/
forAudio: boolean;
/**
* True if user input is needed for video
*/
forVideo: boolean;
}
interface ApiClientOptions {
/**
* String representing the URL to the public CDN API.
*/
publicEndpoint: string;
/**
* Function that should return a string containing a signed authentication token.
*/
tokenFactory?: AuthorizationTokenFactory;
}
interface AuthorizationContext {
/**
* The channelGroupId that might need authorization.
*/
channelGroupId?: string;
/**
* The channelId that might need authorization.
*/
channelId?: string;
}
interface ConnectOptions {
channelGroupId?: string;
channelId: string;
}
type AuthorizationTokenFactory = (context: AuthorizationContext) => string | undefined;
declare class ApiClient {
private baseUrl;
private tokenFactory?;
constructor(options: ApiClientOptions);
/**
* @ignore
* Returns everything needed to setup the connection of Vindral instance.
*/
connect(options: ConnectOptions): Promise;
/**
* Fetches information regarding a single channel.
*
* @param channelId the channel to fetch
* @returns a {@link Channel} containing information about the requested channel.
*/
getChannel(channelId: string): Promise;
/**
* Fetches channels within a channel group
*
* Note: The returned list includes inactive channels - check isLive to filter out only active channels
*
* @param channelGroupId the channel group to fetch channels from
* @returns an array of {@link Channel} that belong to the channel group
*/
getChannels(channelGroupId: string): Promise;
private getHeaders;
private getAuthToken;
private toChannels;
private toChannel;
}
type TransportSelectionReason = "unsupported" | "disabled" | "disabled_unstable_browser" | "unavailable" | "fallback";
interface DocumentStateModulesStatistics extends NavigatorConnectionStatistics {
isVisible: boolean;
isOnline: boolean;
isVisibleCount: number;
isHiddenCount: number;
isOnlineCount: number;
isOfflineCount: number;
}
interface AdaptivityStatistics {
/**
* True if adaptive bitrate (ABR) is enabled.
*/
isAbrEnabled: boolean;
}
interface BufferTimeStatistics {
/**
* Number of time buffer time has been adjusted. This will only happen when using dynamic buffer time
* (different min/max values of bufferTime).
*/
bufferTimeAdjustmentCount: number;
}
interface RenditionsModuleStatistics {
/**
* Id of current video rendition subscribed to.
*/
videoRenditionId?: number;
/**
* Id of current audio rendition subscribed to.
*/
audioRenditionId?: number;
/**
* Current video codec being used.
*/
videoCodec?: string;
/**
* Current audio codec being used.
*/
audioCodec?: string;
/**
* Width of current video rendition (if any).
*/
videoWidth?: number;
/**
* Height of current video rendition (if any).
*/
videoHeight?: number;
/**
* Currently expected video bit rate according to metadata in bits/s.
*/
expectedVideoBitRate?: number;
/**
* Currently expected audio bit rate according to metadata in bits/s.
*/
expectedAudioBitRate?: number;
/**
* Current language. For non-multi language streams, this will often be unset.
*/
language?: string;
/**
* Frame rate. Example: `"frameRate": [24000, 1001]`.
*/
frameRate?: [
number,
number
];
/**
* Total count of rendition level changes (quality downgrades/upgrades).
*/
renditionLevelChangeCount: number;
}
interface VideoConstraintCap {
width: number;
height: number;
bitRate: number;
}
interface AudioConstraintCap {
bitRate: number;
}
interface ConstraintCap {
video: VideoConstraintCap;
audio: AudioConstraintCap;
}
interface ConstraintCapStatistics {
constraintCap?: ConstraintCap;
windowInnerWidth: number;
windowInnerHeight: number;
elementWidth: number;
elementHeight: number;
pixelRatio: number;
}
interface DecoderStatistics {
videoDecodeRate: number;
videoDecodeTime: MinMaxAverage;
audioDecodeTime: MinMaxAverage;
videoTransportTime: MinMaxAverage;
videoKeyframeIntervalMs?: number;
renderedFrameCount?: number;
rendererDroppedFrameCount?: number;
videoRenderer?: "OffscreenCanvas" | "Canvas" | "MSE";
videoDecoder?: "WebCodecs" | "WASM" | "MSE";
audioRenderer?: "AudioContext" | "MSE";
audioDecoder?: "WebCodecs" | "WASM" | "MSE";
}
interface IncomingDataModuleStatistics {
/**
* Current video bitrate in bits/second.
*/
videoBitRate?: number;
/**
* Current audio bitrate in bits/second.
*/
audioBitRate?: number;
/**
* Counter of number of bytes received.
*/
bytesReceived: number;
}
interface JitterStatistics {
/** Minimum jitter in the recent window */
min: number;
/** Maximum jitter in the recent window for spike detection */
max: number;
/** Latest average jitter in ms (recent window) */
last: number;
/** Average jitter in ms (RFC 3550 style, smoothed with /16) */
average: number;
}
interface JitterModuleStatistics {
audioJitter: JitterStatistics | undefined;
videoJitter: JitterStatistics | undefined;
}
type DecoyState = "detached" | "attached" | "playing" | "blocked";
interface MediaSessionModuleStatistics {
mediaSessionSupported: boolean;
mediaSessionOwner: boolean;
mediaSessionPlaybackState: MediaSessionPlaybackState;
decoyState?: DecoyState;
}
interface MseModuleStatistics {
quotaErrorCount: number;
mediaSourceOpenTime: number;
playbackStallCount: number;
totalVideoFrames?: number;
droppedVideoFrames?: number;
successfulVideoAppendCalls?: number;
successfulAudioAppendsCalls?: number;
videoKeyframeIntervalMs?: number;
videoRenderer?: "OffscreenCanvas" | "Canvas" | "MSE";
videoDecoder?: "WebCodecs" | "WASM" | "MSE";
audioRenderer?: "AudioContext" | "MSE";
audioDecoder?: "WebCodecs" | "WASM" | "MSE";
}
interface QualityOfServiceModuleStatistics {
/**
* Time in milliseconds spent in buffering state. Note that this value will increase while in background if
* buffering when leaving foreground.
*/
timeSpentBuffering: number;
/**
* Total number of buffering events since instantiation.
*/
bufferingEventsCount: number;
/**
* Number of fatal quality of service events.
*/
fatalQosCount: number;
/**
* Ratio of time being spent on different quality indexes. Index 0 is always the highest quality.
* Example: `"timeSpentRatio": { "0": 0.8, "1": 0.2 }` shows 80% spent on the best level, 20% on the next one.
*/
timeSpentRatio: {
[qualityIndex: string]: number;
};
/**
* Ratio of time spent buffering to total active time (0-1).
* Provides a normalized buffering quality metric regardless of session length.
* A value of 0.05 means 5% of the active session was spent buffering.
*/
bufferingRatio: number;
/**
* Number of buffering events per minute of active playback.
* Normalizes buffering event count for comparison across sessions of different durations.
*/
bufferingEventsPerMinute: number;
/**
* Weighted average rendition index based on time spent at each level.
* Lower values indicate higher quality (index 0 is the highest quality).
* Example: 0.3 means mostly on the best quality with some time on lower qualities.
*/
averageRenditionIndex: number;
/**
* Buffering ratio for the last minute of playback (0-1).
* Useful for detecting recent degradation vs overall session quality.
*/
bufferingRatioPerMinute: number;
/**
* Number of rendition level changes (upgrades + downgrades) per minute.
* Measures ABR stability - lower values indicate a more stable experience.
*/
renditionChangesPerMinute: number;
/**
* Average time in milliseconds spent buffering per buffering event.
* Helps distinguish many short buffering events from fewer long ones.
*/
timePerBufferingEvent: number;
}
interface SyncModuleStatistics {
drift: number | undefined;
seekAdjustmentCount: number;
timeshiftAdjustmentCount: number;
seekTime: number;
/**
* Total time spent seeking in milliseconds for the entire session.
* High values indicate frequent or slow seeks, which may impact user experience.
*/
totalSeekTime: number;
seekToleranceMultiplier: number;
currentSeekToleranceMs: number;
currentAheadToleranceMs: number;
isPlaybackRateAdjustmentEnabled: boolean;
playbackRate: number;
playbackRateAdjustmentCount: number;
/**
* Average absolute drift in milliseconds over a rolling window.
* Measures how far off sync the playback typically is, regardless of direction.
*/
averageDrift: number;
/**
* Whether the video stream **currently arriving** presents frames out of decode order. Reported
* from SyncModule rather than the playback modules because it sits upstream of both on every ingest
* route, so one detector covers MSE and WebCodecs alike and the readout comes from the same
* observation that gates timeshift.
*
* Not the same as *whether timeshift is currently suppressed* — stated as a rule rather than a list
* of cases, because an earlier version of this comment enumerated them and was incomplete. This is
* {@link BFrameTracker}'s state, which clears whenever the stream identity changes (rendition or
* channel) or {@link reset} runs; the gate above it is a session-sticky latch that never clears. Any
* of those therefore leaves this false — until the detector re-latches a fragment or two later —
* while timeshift stays suppressed.
*
* Both scopes are deliberate: this answers "does the stream in front of us reorder", which is what
* is useful when watching a ladder, and the gate needs the opposite bias. Do not read either as the
* other.
*/
videoHasBFrames: boolean;
}
interface VideoPlayerStatistics {
renderedFrameCount: number;
rendererDroppedFrameCount: number;
/** The platform's own view of the audio context, which a mute reading cannot tell apart. */
audioContextState?: AudioContextState | "none";
}
type ModuleStatistics = AdaptivityStatistics & BufferTimeStatistics & ConnectionStatistics & ConstraintCapStatistics & DecoderStatistics & DocumentStateModulesStatistics & IncomingDataModuleStatistics & JitterModuleStatistics & Partial & MseModuleStatistics & PlaybackModuleStatistics & QualityOfServiceModuleStatistics & RenditionsModuleStatistics & SyncModuleStatistics & TelemetryModuleStatistics & VideoPlayerStatistics;
type Statistics = ModuleStatistics & ReturnType & {
/**
* Version of the @vindral/web-sdk being used.
*/
version: string;
/**
* IP of the client.
*/
ip?: string;
/**
* URL being used for connecting to the stream.
*/
url: string;
/**
* A session is bound to a connection. If the client reconnects for any reason (e.g. coming back from inactivity
* or a problem with network on client side), a new sessionId will be used.
*
*/
sessionId?: string;
/**
* Unlike `sessionId`, `clientId` will remain the same even after reconnections and represents this unique Vindral instance.
*/
clientId: string;
/**
* How long in milliseconds since the instance was created.
*/
uptime: number;
/**
* Current channel ID being subscribed to.
*/
channelId: string;
/**
* Channel group being subscribed to.
*/
channelGroupId?: string;
/**
* Time in milliseconds from the first `connect()` call to playback of video and audio being started.
* Note that an actual frame render often happens much quicker, but that is not counted as TTFF.
* `timeToConnected` shares the same anchor, so `timeToFirstFrame - timeToConnected` is the
* post-transport portion (player bootstrap, media flow, decode, buffer fill, render).
*/
timeToFirstFrame?: number;
/**
* Time in milliseconds from the first `connect()` call to the first successful transport/session connection.
* Includes failed connection attempts and edge failover before the connection is established.
* Does not wait for player bootstrap or media to start.
*/
timeToConnected?: number;
streamToMediaElementEnabled?: boolean;
/** @deprecated */
iosMediaElementEnabled?: boolean;
/** Whether the element carrying the audio is paused right now, on the sinks that have one. */
mediaElementPaused?: boolean;
/**
* Average bitrate for the entire session in bits/second.
*/
averageBitRate?: number;
/**
* Number of reconnections per hour of uptime.
* Measures connection stability over time. Lower is better.
* Excludes the initial connection, so a stable session will have a value of 0.
*/
reconnectsPerHour: number;
/**
* Number of seek adjustments (seeks to catch up) per minute of active playback.
* High values indicate sync issues or network instability.
*/
seekAdjustmentsPerMinute: number;
/**
* Number of timeshift adjustments per minute of active playback.
* Relevant for timeshift-enabled streams.
*/
timeshiftAdjustmentsPerMinute: number;
};
declare class Vindral extends Emitter {
#private;
private static MAX_POOL_SIZE;
private static REMOVE_CUE_THRESHOLD;
private static BACKGROUND_INACTIVITY_DISCONNECT_TIMEOUT;
/** How long a pause on a visible page may still turn out to be the platform backgrounding us. */
private static VISIBLE_PAUSE_DISCONNECT_DELAY;
protected handleListenerError(error: unknown, eventName: PropertyKey): void;
/**
* Picture in picture
*/
readonly pictureInPicture: {
/**
* Enters picture in picture
* @returns a promise that resolves if successful
*/
enter: () => Promise;
/**
* Exits picture in picture
* @returns a promise that resolves if successful
*/
exit: () => Promise;
/**
* returns whether picture in picture is currently active
*/
isActive: () => boolean;
/**
* returns whether picture in picture is supported
*/
isSupported: () => boolean;
};
readonly drm: {
setHeaders: (headers: Record) => void;
setQueryParams: (queryParams: Record) => void;
};
private browser;
private options;
private element;
private playbackSource;
private emitter;
private logger;
private modules;
private clientIp?;
private sessionId?;
private clientId;
private _channels;
private createdAt;
private offscreenCanvasElement?;
private webCodecsRenditionSupport;
private hasCalledConnect;
/** The next join is a rejoin after congestion or fatal QoS, which asks for a short burst. */
private shortBurstRejoin;
/** The last upgrade check held, so the hold is logged once. */
private upgradeHeld;
private hasRequestedAudioSession;
private isUserPaused;
/** Only the sinks that carry the audio report this, so a paused element here means silence. */
private isMediaElementPaused;
private latestEmittedLanguages;
private wakeLock;
private pool;
private userAgentInformation;
private encryptedMediaExtensions;
private sampleProcessingSesssions;
/**
* Dedupe the per-fragment diagnostics to once per rendition stretch — one gate per warning, so a
* rendition tripping both reports both. See the warn sites in the moq-data handler.
*/
private readonly unbackedSamplesWarned;
private readonly unextractableSamplesWarned;
private sizes;
private isSuspended;
private inactivityDisconnectInterval;
private visiblePauseTimeout;
private offscreenSubtitleInterval?;
constructor(options: Options);
/**
* Attaches the video view to a DOM element. The Vindral video view will be sized to fill this element while
* maintaining the correct aspect ratio.
* @param container the container element to append the video view to. Often a div element.
* @returns
*/
attach: (container: HTMLElement) => void;
private setElement;
/**
* Set the current volume.
* Setting this to 0 is not equivalent to muting the audio.
* Setting this to >0 is not equivalent to unmuting the audio.
*
* Note that setting volume is not allowed on iPadOS and iOS devices.
* This is an OS/browser limitation on the video element.
*
* [Read more about it on Apple docs](https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html)
* for iOS-Specific Considerations. The following section is the important part:
* On iOS devices, the audio level is always under the user's physical control. The volume property is not settable in JavaScript. Reading the volume property always returns 1.
*
* @param volume The volume to set. A floating point value between 0-1.
*
*/
set volume(volume: number);
/**
* The current volume. Note that if the playback is muted volume can still be set.
*/
get volume(): number;
/**
* Set playback to muted/unmuted
*/
set muted(muted: boolean);
/**
* Whether the playback is muted or not
*/
get muted(): boolean;
/**
* Which media type is currently being played
*/
get media(): Media;
/**
* The current average video bit rate in bits/s
*/
get videoBitRate(): number;
/**
* The current average audio bit rate in bits/s
*/
get audioBitRate(): number;
/**
* The current connection state
*/
get connectionState(): Readonly;
/**
* The current playback state
*/
get playbackState(): Readonly;
/**
* The current buffer fullness as a floating point value between 0-1, where 1 is full and 0 i empty.
*/
get bufferFullness(): number;
/**
* Whether user bandwidth savings by capping the video resolution to the size of the video element is enabled
*/
get sizeBasedResolutionCapEnabled(): boolean;
/**
* Enables or disables user bandwidth savings by capping the video resolution to the size of the video element.
*/
set sizeBasedResolutionCapEnabled(enabled: boolean);
/**
* Whether ABR is currently enabled
*/
get abrEnabled(): boolean;
/**
* Enable or disable ABR
*
* The client will immediatly stop changing renditon level based on QoS metrics
*
* Note: It is strongly recommended to keep this enabled as it can severly increase
* the number of buffering events for viewers.
*/
set abrEnabled(enabled: boolean);
/**
* Estimated live edge time for the current channel
*/
get serverEdgeTime(): number | undefined;
/**
* @returns Estimated wallclock time on the edge server in milliseconds
*/
get serverWallclockTime(): number | undefined;
/**
* Local current time normalized between all channels in the channel group
*/
get currentTime(): number;
/**
* Current time for the channel. This is the actual stream time, passed on from your ingress.
* Integer overflow could make this value differ from your encoder timestamps if it has been rolling for more
* than 42 days with RTMP as target.
*
* Note: This is not normalized between channels, thus it can make jumps when switching channels
*/
get channelCurrentTime(): number;
/**
* The current target buffer time in milliseconds.
*
* Initially, this will always be equal to `minBufferTime`.
* Only when using a separate `maxBufferTime`, the `targetBufferTime` will be able to vary between min and max.
*
*/
get targetBufferTime(): number;
/**
* Set the current target buffer time in milliseconds.
*
* Note that setting this will not respect min/max buffer time values.
* For instance with `{ minBufferTime: 500, maxBufferTime: 3000 }, you can still set `targetBufferTime` to 100 ms.`
* The dynamic buffer will still work in respect to the originally set values when needed. Therefore we recommend
* setting targetBufferTime within that range for consistancy if using both min/max.
*/
set targetBufferTime(bufferTimeMs: number);
/**
* Set the burst for joins and channel switches from `burstEnabled` as resolved for the channel, so a channel
* override can turn it off as well as on
*/
private applyBurstEnabled;
/**
* Update the dynamic buffer time configuration at runtime.
* Allows adjusting min and max buffer time without recreating the Vindral instance.
*/
updateBufferTimeConfig(config: {
minBufferTime?: number;
maxBufferTime?: number;
}): void;
/**
* The estimated playback latency based on target buffer time, the connection rtt and local playback drift
*/
get playbackLatency(): number | undefined;
/**
* The estimated utc timestamp (in ms) for the playhead.
*/
get playbackWallclockTime(): number | undefined;
/**
* Channels that can be switched between
*/
get channels(): ReadonlyArray;
/**
* Languages available
*/
get languages(): ReadonlyArray;
/**
* The current language
*/
get language(): string | undefined;
/**
* Set the current language
*/
set language(language: string | undefined);
/**
* Set the active text track
*/
set textTrack(label: string | undefined);
/**
* Get the available text tracks
*/
get textTracks(): string[];
/**
* Get the active text track
*/
get textTrack(): string | undefined;
/**
* The current channelId
*/
get channelId(): string;
/**
* Set the current channelId
*
* Possible channels to set are available from {@link channels}
*
* Note that the following scenarios are not possible right now:
* - switching channel from a channel with audio to a channel without audio (unless audio only mode is active)
* - switching channel from a channel with video to a channel without video (unless video only mode is active)
*/
set channelId(channelId: string);
/**
* Max size that will be subscribed to
*/
get maxSize(): Size;
/**
* Set max size that will be subscribed to
*
* Note: If ABR is disabled, setting this will make the client instantly subscribe to this size
*/
set maxSize(size: Size);
/**
* The max video bit rate that will be subscribed to
*
* Note: Returns Number.MAX_SAFE_INTEGER if no limits have been set
*/
get maxVideoBitRate(): number;
/**
* Set max video bit rate that will be subscribed to
*
* Note: If ABR is disabled, setting this will make the client instantly subscribe to this bitrate
*/
set maxVideoBitRate(bitRate: number);
/**
* The max audio bit rate that will be subscribed to
*
* Note: Returns Number.MAX_SAFE_INTEGER if no limits have been set
*/
get maxAudioBitRate(): number;
/**
* Set max audio bit rate that will be subscribed to
*
* Note: If ABR is disabled, setting this will make the client instantly subscribe to this bit rate
*/
set maxAudioBitRate(bitRate: number);
/**
* The rendition levels available.
*/
get renditionLevels(): ReadonlyArray;
/**
* The current rendition level
*/
get currentRenditionLevel(): Readonly | undefined;
/**
* The target rendition level that the client is currently switching to
*/
get targetRenditionLevel(): Readonly | undefined;
/**
* True if the client is currently switching from one rendition level to another
*/
get isSwitchingRenditionLevel(): boolean;
/**
* The time ranges buffered for video.
* The ranges are specified in milliseconds.
*/
get videoBufferedRanges(): ReadonlyArray;
/**
* The time ranges buffered for audio.
* The ranges are specified in milliseconds.
*/
get audioBufferedRanges(): ReadonlyArray;
/**
* The timestamps (in milliseconds) of video keyframes currently in the buffer.
*/
get videoKeyframeTimestamps(): ReadonlyArray;
/**
* The API client for calls to the public available endpoints of the Vindral Live CDN.
*/
getApiClient(): ApiClient;
get lastBufferEvent(): Readonly;
get activeRatios(): Map;
get bufferingRatios(): Map;
get timeSpentBuffering(): number;
get timeActive(): number;
get mediaElement(): HTMLMediaElement | HTMLCanvasElement;
get audioNode(): AudioNode | undefined;
get drmStatistics(): {
keySystem?: string | undefined;
licenseServerUrl?: string | undefined;
mediaKeySystemConfiguration?: MediaKeySystemConfiguration | undefined;
provider?: string | undefined;
clearkeys?: Record;
playreadyLicenseUrl?: string;
widevineLicenseUrl?: string;
fairplayLicenseUrl?: string;
fairplayCertificate?: ArrayBuffer;
videoCodec?: string;
audioCodec?: string;
} | null;
/**
* Get active Vindral Options
*/
getOptions: () => Options;
/**
* Get url for fetching thumbnail. Note that fetching thumbnails only works for an active channel.
*/
getThumbnailUrl: () => string;
/**
* Update authentication token on an already established and authenticated connection
*/
updateAuthenticationToken: (token: string) => void;
/**
* @deprecated since 3.0.0 Use play instead.
* Connects to the configured channel and starts streaming
*/
connect: () => void;
private _connect;
/**
* Get options that can be used for CastSender
*/
getCastOptions: () => Options;
private onConnectInfo;
/**
* A recovery reconnect: the current level didn't fit the link. Rejoin at the lowest level and let ABR climb back,
* since another backlog or stall costs more than a few seconds at low quality.
*/
private lowerTargetForRejoin;
/**
* The join burst: the buffer target, or 0 when bursts are off. A link too thin for the target's burst, or a rejoin
* after congestion or fatal QoS, gets a short burst instead, so it starts in the edge's live group without
* resending history into a link that can't take it.
*/
private joinBurstMs;
private onPingTimeout;
private emitLanguagesIfChanged;
private updateTextTracks;
private cleanupTextTracks;
private filterRenditions;
/** The buffer lags behind the link: no upgrade while it queues, or while it is still unknown on a new connection. */
private linkHoldsUpgrade;
/** Whether the bandwidth leaves room for a join burst of the video and audio the player starts at. */
private burstFits;
/**
* Patch the subscription with properties from the channel that isn't known until connection
* @param channel Channel with the renditions to patch the subscription based on
*/
private patchSubscription;
private isSupportedVideoCodecProfile;
private supportedAudioCodecs;
private initializeDecodingModule;
private capturesCanvasOnWebKit;
private connectWebKitVideoOutput;
/**
* Set up a polling interval that forwards subtitle cues to the decoder worker
* when OffscreenCanvas rendering is active. This is needed because the canvas modules'
* own subtitle intervals either get killed (LegacyCanvasModule) or don't have the
* OffscreenCanvas reference at construction time (ModernCanvasModule).
*/
private setupOffscreenSubtitleRouting;
/**
* Fully unloads the instance. This disconnects the clients and stops any background tasks.
* This client instance cannot be used after this has been called.
*/
unload: () => Promise;
/**
* @deprecated since 3.0.0 Use play instead.
*
* Activates audio or video on web browsers that require a user gesture to enable media playback.
* The Vindral instance will emit a "needs user input" event to indicate when this is needed.
* But it is also safe to pre-emptively call this if it is more convenient - such as in cases where
* the Vindral instance itself is created in a user input event.
*
* Requirements: This method needs to be called within an user-input event handler to function properly, such as
* an onclick handler.
*
* Note: Even if you pre-emptively call this it is still recommended to listen to "needs user input"
* and handle that event gracefully.
*/
userInput: () => void;
/**
* Pauses the stream. Call .play() to resume playback again.
*/
pause: () => void;
/**
* A browser-initiated decoy pause means an interruption (another app took the focus, headphones
* unplugged), so give the audio up rather than play over it. WebKit holds the decoy on purpose.
*/
private yieldToInterruption;
private fromNativeControls;
private registerDebugInstance;
/**
*
* Start playing the stream.
*
* This method also activates audio or video on web browsers that require a user gesture to enable media playback.
* The Vindral instance will emit a "needs user input" event to indicate when this is needed.
* But it is also safe to pre-emptively call this if it is more convenient - such as in cases where
* the Vindral instance itself is created in a user input event.
*
* Note: In most browsers this method needs to be called within an user-input event handler, such as
* an onclick handler in order to activate audio. Most implementations call this directly after constructing the Vindral
* instance once in order to start playing, and then listen to a user-event in order to allow audio to be activated.
*
* Note 2: Even if you pre-emptively call this it is still recommended to listen to "needs user input"
* and handle that event gracefully.
*/
play: () => void;
/**
* How long in milliseconds since the instance was created
*/
get uptime(): number;
/**
* This method collects a statistics report from internal modules. While many of the report's properties are documented, the report may also contain undocumented
* properties used internally or temporarily for monitoring and improving the performance of the service.
*
* Use undocumented properties at your own risk.
*/
getStatistics: () => Statistics;
private resetModules;
private disconnectForInactivePage;
private scheduleInactivityDisconnect;
/**
* iOS pauses the element a moment before it hides the page, and that pause reaches us while the
* page still reports visible. Acting on it at once tears the session down, so every app switch
* comes back as a full reconnect. Wait for the hide that follows a platform pause instead.
* Nowhere else pauses before hiding, so there a visible pause is the viewer's at once.
*/
private onVisiblePause;
private disconnectForVisiblePause;
private clearVisiblePauseDisconnect;
private clearInactivityDisconnect;
private isHiddenWithBackgroundPlayback;
private isVideoOnScreen;
private isHiddenWithBackgroundPlayDisabled;
private suspend;
private unsuspend;
private resumeModules;
private getRuntimeInfo;
private getPlaybackBufferState;
private onMediaElementBufferState;
private onMediaElementState;
private onBufferEvent;
/**
* Aligns size and bitrate to match a rendition level correctly
*/
private alignSizeAndBitRate;
private get currentSubscription();
private get targetSubscription();
private timeToFirstFrame;
private resolvedDecoder;
/**
* On mobile Chromium with WebCodecs audio the play action arrives but no sound comes back until
* the page is visible, so a hidden pause is a stop there. Reads the decoder in use.
*/
private hiddenPauseIsStop;
private usesSplitCanvasAudio;
private isWebKitCanvasPath;
private holdsDecoyWhilePaused;
private streamsToMediaElement;
/**
* Safari 16.4+: a playback audio session keeps Web Audio alive in the background. Document-wide
* and not restorable, so it waits for playback to be wanted rather than for construction.
*/
private requestAudioSessionOnce;
private willUseMediaSource;
private shouldUseWebCodecs;
private isWebCodecsVideoAvailable;
private isWebCodecsAudioAvailable;
/**
* Returns true if OffscreenCanvas should be used.
* Implicitly enabled when the resolved decoder is WebCodecs, since OffscreenCanvas
* is the optimal rendering path for WebCodecs (worker renders VideoFrames directly).
*/
private shouldUseOffscreenCanvas;
private isBackgroundPlayEnabled;
private shouldAllowBackgroundPlayback;
}
interface TelemetryModuleStatistics {
/**
* The total amount of errors being spawned. Note that some media errors can trigger
* thousands of errors for a single client in a few seconds before recovering. Therefore,
* consider the number of viewers with errors, not just the total amount. Also, consider the median
* instead of the mean for average calculation.
*/
errorCount: number;
}
type ConnectionState = "connected" | "disconnected" | "connecting";
type ContextSwitchState = "completed" | "started";
interface ConnectionStatistics {
/**
* RTT (round trip time) between client and server(s).
*/
rtt: MinMaxAverage;
/**
* A very rough initial estimation of minimum available bandwidth.
*/
estimatedBandwidth: number;
/**
* Origin of the edge the client is connected to, or is trying while it reconnects. Once disconnected, the last
* edge it was connected to.
*/
edgeUrl?: string;
/**
* Total number of connections that have been established since instantiation.
*/
connectCount: number;
/**
* Connections closed since instantiation because media queued too long between the edge and this client: the
* link-queue breaker on vindral_ws and moq_ws, or missed pings on vindral_ws while its link queue is unknown. With ABR
* on, the reconnect targets the lowest level, unless the player is already there, switching channel or on an
* audio-only ladder.
*/
backlogReconnectCount: number;
/**
* Total number of connection attempts since instantiation.
*/
connectionAttemptCount: number;
/**
* Ratio of successful connections to total connection attempts (0-1).
* A value of 1.0 means every connection attempt succeeded.
*/
connectionSuccessRatio: number;
/**
* Time in milliseconds from the first connect() call to the first successful transport/session connection.
* Includes failed attempts and edge failover before the connection is established.
* Does not wait for player bootstrap or media to start.
*/
timeToConnected?: number;
/** Protocol of the current connection. Unset while reconnecting; once disconnected, the last connection's. */
connectionProtocol: "vindral_ws" | "moq" | "moq_ws" | undefined;
/**
* When connectionProtocol is "moq_ws", indicates why WebSocket was used instead of WebTransport.
* - "unsupported": browser doesn't support WebTransport
* - "disabled": webtransportEnabled option is false
* - "disabled_unstable_browser": browser with unstable WebTransport, and unstableWebtransportEnabled option is false
* - "unavailable": edge did not offer a WebTransport endpoint
* - "fallback": WebTransport was attempted but failed or timed out
* Unset while reconnecting; once disconnected, the last connection's.
*/
transportSelectionReason: TransportSelectionReason | undefined;
/**
* Media queued between the edge and this client over the last 30 seconds, in milliseconds, measured from the edge's
* periodic timing info (vindral_ws) or stats (moq_ws). `last` is the current level. Unset while unknown and on
* WebTransport. Arrival is read on the main thread, so a busy main thread (WASM decode, a heavy page) also counts.
*/
linkQueue?: MinMaxAverage;
}
interface LanguageSwitchContext {
/**
* The new language that was switched to
*/
language: string;
}
interface ChannelSwitchContext {
/**
* The new channel on "channel switch", the current channel on "channel switch failed"
*/
channelId: string;
}
interface VolumeState {
/**
* Wether the audio is muted
*/
isMuted: boolean;
/**
* The volume level
*/
volume: number;
}
interface TimeShiftInfo {
urls: string[];
duration: string;
}
interface CmafFragmentEvent {
mediaType: "video" | "audio";
initSegment: Readonly>;
fragment: Readonly>;
isKeyframe: boolean;
}
interface PublicVindralEvents {
/**
* When an error that requires action has occured
*
* Can be a fatal error that will unload the Vindral instance - this is indicated by `isFatal()` on the error object returning true.
*
* In case of a fatal error it is appropriate to indicate what the error was to the user, either by displaying the error.message or
* by using the error.code() as a key to look up a localization string. To resume streaming it is required to create a new Vindral instance.
*/
error: Readonly;
/**
* When the instance needs user input to activate audio or sometimes video playback.
* Is called with an object
* ```javascript
* {
* forAudio: boolean // true if user input is needed for audio playback
* forVideo: boolean // true if user input is needed for video playback
* }
* ```
*/
"needs user input": NeedsUserInputContext;
/**
* When a timed metadata event has been triggered
*/
metadata: Readonly;
/**
* When the playback state changes
*/
"playback state": Readonly;
/**
* When the connection state changes
*/
"connection state": Readonly;
/**
* When the available rendition levels is changed
*/
"rendition levels": ReadonlyArray;
/**
* When the rendition level is changed
*/
"rendition level": Readonly;
/**
* When the available languages is changed
*/
languages: ReadonlyArray;
/**
* When the available text tracks are changed
*/
"text tracks": ReadonlyArray;
/**
* When the available channels is changed
*/
channels: ReadonlyArray;
/**
* When a context switch state change has occured.
* E.g. when a channel change has been requested, or quality is changed.
*/
"context switch": Readonly;
/**
* Emitted when a wallclock time message has been received from the server.
*
* Note: This is the edge server wallclock time and thus may differ slightly
* between two viewers if they are connected to different edge servers.
*/
"server wallclock time": Readonly;
/**
* Is emitted during connection whether the channel is live or not.
*
* If the channel is not live, the Vindral instance will try to reconnect until the `reconnectHandler`
* determines that no more retries should be made. Each attempt also emits a non-fatal `error` with
* the code `channel_not_live`.
*
* Note: If the web-sdk is instantiated at the same time as you are starting the stream it is possible
* that this emits false until the started state has propagated through the system.
*/
"is live": boolean;
/**
* Emitted when a channel switch has been completed and the first frame of the new channel is rendered.
* The argument holds the channel id of the new channel.
*/
"channel switch": Readonly;
/**
* Emitted when a channel switch fails.
* The argument holds the channel id of the current channel.
*/
"channel switch failed": Readonly;
/**
* Emitted when a language switch has been completed and the new language starts playing.
*/
"language switch": Readonly;
/**
* Emitted when the volume state changes.
*
* This is triggered triggered both when the user changes the volume through the Vindral instance, but also
* from external sources such as OS media shortcuts or other native UI outside of the browser.
*/
"volume state": Readonly;
/**
* Emitted when the timeshift URLs are updated.
*/
"timeshift info": Readonly;
/**
* Emitted for each CMAF fragment received via the MoQ/VoQ path.
* Contains raw fMP4 bytes suitable for recording.
*
* @internal Not part of the public API — may change without notice.
*/
"cmaf fragment": Readonly;
"buffer state event": Readonly;
"initialized media": void;
}
declare abstract class VindralButton extends HTMLElement {
#private;
static observedAttributes: string[];
constructor();
get keysUsed(): string[];
connectedCallback(): void;
enable(): void;
disable(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
protected abstract handleClick(e: Event): void;
}
declare class VindralMenuButton extends VindralButton {
#private;
constructor();
connectedCallback(): void;
set listbox(listbox: HTMLElement);
set listboxSlot(listboxSlot: HTMLElement);
enable(): void;
hide(): void;
protected handleClick(e: Event): void;
}
type AdvancedRenditionMenuAttributes = (typeof AdvancedRenditionMenu.observedAttributes)[number];
declare class AdvancedRenditionMenu extends VindralMenuButton {
#private;
static observedAttributes: string[];
constructor();
connectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
}
type AdvancedRenditionMenuListAttributes = (typeof AdvancedRenditionMenuList.observedAttributes)[number];
declare class AdvancedRenditionMenuList extends HTMLElement {
#private;
static observedAttributes: ("rendition-levels" | "rendition-level" | "max-video-bit-rate" | "abr-enabled" | "size-based-resolution-cap-enabled")[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
private set list(value);
private set maxVideoBitrate(value);
get keysUsed(): string[];
handleEvent: (event: Event) => void;
focus(): void;
}
type AirPlayButtonAttributes = (typeof AirPlayButton.observedAttributes)[number];
declare class AirPlayButton extends VindralButton {
#private;
static observedAttributes: string[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
set isAirPlaying(value: boolean);
get isAirPlaying(): boolean;
protected handleClick(_: Event): void;
}
type BufferingIconAttributes = (typeof BufferingIcon.observedAttributes)[number];
declare class BufferingIcon extends HTMLElement {
#private;
static observedAttributes: "buffering"[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
}
type BufferingOverlayAttributes = (typeof BufferingOverlay.observedAttributes)[number];
declare class BufferingOverlay extends HTMLElement {
#private;
static observedAttributes: readonly [
"buffering"
];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
}
type CastButtonAttributes = (typeof CastButton.observedAttributes)[number];
declare class CastButton extends VindralButton {
#private;
static observedAttributes: string[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
set isCasting(value: boolean);
get isCasting(): boolean;
protected handleClick(_: Event): void;
}
type CastOverlayAttributes = (typeof CastOverlay.observedAttributes)[number];
declare class CastOverlay extends HTMLElement {
#private;
static observedAttributes: readonly [
"is-casting",
"cast-receiver-name"
];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: CastOverlayAttributes, oldValue: string, newValue: string): void;
}
type ChannelGridAttributes = (typeof ChannelGrid.observedAttributes)[number];
declare class ChannelGrid extends HTMLElement {
#private;
static observedAttributes: readonly [
"channels",
"channel-id",
"authentication-token",
"mode",
"hidden"
];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
get keysUsed(): string[];
handleEvent: (event: Event) => void;
focus(): void;
}
type ChannelGridButtonAttributes = (typeof ChannelGridButton.observedAttributes)[number];
declare class ChannelGridButton extends VindralButton {
#private;
static observedAttributes: string[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
enable(): void;
protected handleClick(_: MouseEvent): void;
get isOpen(): boolean;
}
type ChannelGridItemAttributes = (typeof ChannelGridItem.observedAttributes)[number];
declare class ChannelGridItem extends HTMLElement {
#private;
lastThumbnailUpdate?: number;
static observedAttributes: readonly [
"url",
"title",
"offline",
"authentication-token",
"visible"
];
constructor();
attributeChangedCallback(name: string, old: string, value: string): void;
updateThumbnail(): void;
}
declare class ControlBar extends HTMLElement {
static observedAttributes: never[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
}
interface AirPlaySenderEvents {
/**
* When airplay targets are available.
*/
available: void;
/**
* When a connection has been established with an airplay target.
*/
connected: void;
/**
* When the airplay target has lost or stopped a connection.
*/
disconnected: void;
}
interface AirPlayConfig {
/**
* URL to use when connecting to the stream.
*/
url: string;
/**
* Channel ID to connect to.
*/
channelId: string;
/**
* A container to attach the video element in. This should be the same container that the vindral video element is attached to.
*/
container: HTMLElement;
/**
* An authentication token to provide to the server when connecting - only needed for channels with authentication enabled
* Note: If not supplied when needed, an "Authentication Failed" error will be raised.
*/
authenticationToken?: string;
}
declare class AirPlaySender extends Emitter {
private config;
private hlsUrl;
private element;
private connectingTimeout?;
private castingAvailable;
constructor(config: AirPlayConfig);
/**
* True if the instance is casting right now.
*/
get casting(): boolean;
/**
* Set the current channelId.
*/
set channelId(channelId: string);
/**
* Update authentication token on an already established and authenticated connection.
* Note: When casting to AirPlay, this will interrupt the current session to apply the new token.
*/
updateAuthenticationToken: (token: string) => void;
/**
* Fully unloads the instance. This disconnects the current listeners.
*/
unload: () => void;
/**
* Show the AirPlay picker.
*/
showPlaybackTargetPicker(): void;
/**
* Returns if AirPlay is supported.
*/
static isAirPlaySupported(): boolean;
private onAirPlayAvailable;
private onAirPlayPlaybackChanged;
private getHlsUrl;
private checkHlsUrl;
}
interface FullscreenEvents {
"on fullscreen change": boolean;
}
declare class Fullscreen extends Emitter {
private container;
constructor(container: HTMLElement);
unload: () => void;
request: () => Promise;
exit: () => Promise;
private onChange;
isFullscreen: () => boolean;
isSupported: () => boolean;
isFullscreenApiSupported: () => boolean;
static isFullscreenApiSupported: (element: HTMLElement) => boolean;
private isInIframe;
private get requestFn();
private get exitFn();
}
interface TimelineMarker {
/** Wall-clock time of the event in epoch ms */
time: number;
/** Text shown in the seek bar tooltip */
label: string;
type?: string;
}
interface TimelineMarkerInput {
/** Wall-clock time of the event as epoch ms, ISO 8601 string or Date */
time: number | string | Date;
/** Text shown in the seek bar tooltip; markers without one are dropped */
label: string;
type?: string;
}
type ControllerAttributes = (typeof Controller.observedAttributes)[number];
declare class Controller extends HTMLElement {
#private;
static observedAttributes: readonly [
...("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" | "timeshift-thumbnail-url" | "seek-preview" | "timeline-markers" | "poster-src" | "debug-panel-open" | "target-buffer-time" | "drift" | "playback-latency" | "connection-state")[],
"url",
"edge-url",
"target-buffer-time",
"cast-receiver-id",
"cast-background",
"log-level",
"max-size",
"min-buffer-time",
"max-buffer-time",
"max-audio-bit-rate",
"max-initial-bit-rate",
"burst-enabled",
"mse-enabled",
"mse-opus-enabled",
"background-play-enabled",
"ios-background-play-enabled",
"media-session-enabled",
"ios-wake-lock-enabled",
"stream-to-media-element-enabled",
"ios-media-element-enabled",
"abr-enabled",
"size-based-resolution-cap-enabled",
"telemetry-enabled",
"video-codecs",
"poster",
"advanced",
"drm-headers",
"drm-queryparams",
"drm-widevine-video-robustness",
"drm-widevine-audio-robustness",
"drm-playready-video-robustness",
"drm-playready-audio-robustness",
"webtransport-enabled",
"unstable-webtransport-enabled",
"webcodecs-hardware-acceleration",
"decoders",
"offscreen-canvas-enabled",
"reconnect-retries",
"auto-instance-enabled",
"language"
];
constructor();
connectedCallback(): Promise;
disconnectedCallback(): void;
handleEvent: (event: Event) => void;
attributeChangedCallback(name: ControllerAttributes, oldValue: string, newValue?: string): void;
connectListener(component: HTMLElement): void;
disconnectListener(component: HTMLElement): void;
handleTimeShiftUpdate: (timeShift: string | false) => void;
get instance(): Vindral | undefined;
get fullscreen(): Fullscreen | undefined;
get airPlay(): AirPlaySender | undefined;
/**
* Markers rendered on the seek bar timeline, normalized to epoch ms times.
*/
get timelineMarkers(): TimelineMarker[];
/**
* Replaces the markers rendered on the seek bar timeline. Marker times are
* wall-clock times (epoch ms, ISO 8601 string or Date); markers outside the
* timeshift window are ignored until they slide into view.
*/
set timelineMarkers(markers: TimelineMarkerInput[]);
connect(): void;
}
type FullscreenButtonAttributes = (typeof FullscreenButton.observedAttributes)[number];
declare class FullscreenButton extends VindralButton {
static observedAttributes: string[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
set isFullscreen(value: boolean);
get isFullscreen(): boolean;
protected handleClick(_: Event): void;
}
type LanguageMenuAttributes = (typeof LanguageMenu.observedAttributes)[number];
declare class LanguageMenu extends VindralMenuButton {
#private;
static observedAttributes: string[];
constructor();
connectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
}
type LanguageMenuListAttributes = (typeof LanguageMenuList.observedAttributes)[number];
declare class LanguageMenuList extends HTMLElement {
#private;
static observedAttributes: ("language" | "languages" | "text-tracks" | "text-track")[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
private set languages(value);
private set textTracks(value);
private set language(value);
private set textTrack(value);
get keysUsed(): string[];
handleEvent: (event: Event) => void;
focus(): void;
}
type MuteButtonAttributes = (typeof MuteButton.observedAttributes)[number];
declare class MuteButton extends VindralButton {
static observedAttributes: string[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
set muted(value: boolean);
get muted(): boolean;
protected handleClick(_: Event): void;
}
type PictureInPictureButtonAttributes = (typeof PictureInPictureButton.observedAttributes)[number];
declare class PictureInPictureButton extends VindralButton {
static observedAttributes: string[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
set isPictureInPictureActive(value: boolean);
get isPictureInPictureActive(): boolean;
protected handleClick(_: Event): void;
}
type PlayButtonAttributes = (typeof PlayButton.observedAttributes)[number];
declare class PlayButton extends VindralButton {
static observedAttributes: string[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
set paused(value: boolean);
get paused(): boolean;
protected handleClick(_: Event): void;
}
type PlayerAttributes = (typeof Player.observedAttributes)[number];
declare class Player extends HTMLElement {
#private;
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" | "timeshift-thumbnail-url" | "seek-preview" | "timeline-markers" | "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" | "background-play-enabled" | "ios-background-play-enabled" | "media-session-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" | "unstable-webtransport-enabled" | "webcodecs-hardware-acceleration" | "offscreen-canvas-enabled" | "reconnect-retries" | "auto-instance-enabled" | "advanced-rendition-menu-enabled" | "refresh-poster-enabled" | "stream-poll-enabled")[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, oldValue?: string, newValue?: string): void;
get instance(): Vindral | undefined;
get airPlay(): AirPlaySender | undefined;
/**
* Markers rendered on the seek bar timeline, normalized to epoch ms times.
*/
get timelineMarkers(): TimelineMarker[];
/**
* Replaces the markers rendered on the seek bar timeline. Marker times are
* wall-clock times (epoch ms, ISO 8601 string or Date); markers outside the
* timeshift window are ignored until they slide into view.
*/
set timelineMarkers(markers: TimelineMarkerInput[]);
}
type PosterOverlayAttributes = (typeof PosterOverlay.observedAttributes)[number];
declare class PosterOverlay extends HTMLElement {
#private;
static observedAttributes: readonly [
"poster-src",
"paused",
"disabled",
"intersecting"
];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: PosterOverlayAttributes, oldValue: string, newValue: string): void;
get disabled(): boolean;
set disabled(value: boolean);
get posterSrc(): string | null;
get paused(): boolean;
}
type RenditionLevelsMenuAttributes = (typeof RenditionLevelsMenu.observedAttributes)[number];
declare class RenditionLevelsMenu extends VindralMenuButton {
#private;
static observedAttributes: string[];
constructor();
connectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
}
type RenditionLevelsMenuListAttributes = (typeof RenditionLevelsMenuList.observedAttributes)[number];
declare class RenditionLevelsMenuList extends HTMLElement {
#private;
static observedAttributes: ("rendition-levels" | "max-video-bit-rate")[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
private set list(value);
private set maxVideoBitrate(value);
get keysUsed(): string[];
handleEvent: (event: Event) => void;
focus(): void;
}
type ScrollOverlayAttributes = (typeof ScrollOverlay.observedAttributes)[number];
declare class ScrollOverlay extends HTMLElement {
#private;
static observedAttributes: readonly [
"user-interacting",
"open",
"touch-enabled"
];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
handleEvent: (event: Event) => void;
set open(value: boolean);
get open(): boolean;
set visible(value: boolean);
get visible(): boolean;
}
declare class VindralRange extends HTMLElement {
#private;
static observedAttributes: string[];
range: HTMLInputElement;
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
enable(): void;
disable(): void;
handleEvent(event: Event): void;
updateBar(): void;
get keysUsed(): string[];
}
type UserInputPlayOverlayAttributes = (typeof VindralUserInputPlayOverlay.observedAttributes)[number];
declare class VindralUserInputPlayOverlay extends HTMLElement {
#private;
static observedAttributes: string[];
constructor();
get keysUsed(): string[];
connectedCallback(): void;
enable(): void;
disable(): void;
disconnectedCallback(): void;
}
type VindralMessageAttributes = (typeof VindralMessage.observedAttributes)[number];
declare class VindralMessage extends HTMLElement {
#private;
static observedAttributes: string[];
constructor();
connectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
}
type PlayOverlayAttributes = (typeof VindralPlayOverlay.observedAttributes)[number];
declare class VindralPlayOverlay extends HTMLElement {
#private;
static observedAttributes: string[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
}
type VolumeRangeAttributes = (typeof VolumeRange.observedAttributes)[number];
declare class VolumeRange extends VindralRange {
#private;
static observedAttributes: string[];
constructor();
connectedCallback(): void;
disconnectedCallback(): void;
attributeChangedCallback(name: string, old: string, value: string): void;
get volume(): string;
get muted(): boolean;
}
type CustomElement = Partial, T>, "class"> & {
[Key in K]?: string;
} & {
class?: string;
}>;
/**
* @ignore
*/
export declare interface VindralIntrinsicElements {
"vindral-controller": CustomElement;
"vindral-control-bar": CustomElement;
"vindral-advanced-rendition-menu": CustomElement;
"vindral-advanced-rendition-menu-list": CustomElement;
"vindral-play-button": CustomElement;
"vindral-mute-button": CustomElement;
"vindral-buffering-overlay": CustomElement;
"vindral-scroll-overlay": CustomElement;
"vindral-play-overlay": CustomElement;
"vindral-user-input-play-overlay": CustomElement;
"vindral-fullscreen-button": CustomElement;
"vindral-rendition-levels-menu": CustomElement;
"vindral-rendition-levels-menu-list": CustomElement;
"vindral-channel-grid-button": CustomElement;
"vindral-channel-grid": CustomElement;
"vindral-channel-grid-item": CustomElement;
"vindral-pip-button": CustomElement;
"vindral-airplay-button": CustomElement;
"vindral-cast-button": CustomElement;
"vindral-cast-overlay": CustomElement;
"vindral-buffering-icon": CustomElement;
"vindral-language-menu": CustomElement;
"vindral-language-menu-list": CustomElement;
"vindral-message": CustomElement;
"vindral-volume-range": CustomElement;
"vindral-poster-overlay": CustomElement;
"vindral-player": CustomElement;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements extends VindralIntrinsicElements {
}
}
}
export {};