node_modules ignore

This commit is contained in:
oier committed 2025-05-08 23:43:47 +02:00
1 parent e19d52f172
commit 4574544c9f
65041 files changed
+10593536

No files matched your search

File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/typescript/lib/lib.es2019.full.d.ts","../src/polyfills/index.ts","../src/media-chrome/dialog.ts","../src/dialog.ts","../../../node_modules/mux-embed/dist/types/mux-embed.d.ts","../../playback-core/dist/types/errors.d.ts","../../../node_modules/hls.js/dist/hls.js.d.ts","../../playback-core/dist/types/types.d.ts","../../playback-core/dist/types/hls.d.ts","../../playback-core/dist/types/text-tracks.d.ts","../../playback-core/dist/types/pdt.d.ts","../../playback-core/dist/types/util.d.ts","../../playback-core/dist/types/request-errors.d.ts","../../playback-core/dist/types/index.d.ts","../../../node_modules/custom-media-element/custom-media-element.d.ts","../../../node_modules/media-tracks/dist/video-rendition.d.ts","../../../node_modules/media-tracks/dist/video-track.d.ts","../../../node_modules/media-tracks/dist/video-track-list.d.ts","../../../node_modules/media-tracks/dist/audio-rendition.d.ts","../../../node_modules/media-tracks/dist/audio-track.d.ts","../../../node_modules/media-tracks/dist/audio-track-list.d.ts","../../../node_modules/media-tracks/dist/video-rendition-list.d.ts","../../../node_modules/media-tracks/dist/audio-rendition-list.d.ts","../../../node_modules/media-tracks/dist/mixin.d.ts","../../../node_modules/media-tracks/dist/track-event.d.ts","../../../node_modules/media-tracks/dist/rendition-event.d.ts","../../../node_modules/media-tracks/dist/index.d.ts","../../mux-video/dist/types/index.d.ts","../src/utils.ts","../src/helpers.ts","../src/types.d.ts","../src/errors.ts","../../../node_modules/media-chrome/dist/utils/server-safe-globals.d.ts","../../../node_modules/media-chrome/dist/media-gesture-receiver.d.ts","../../../node_modules/media-chrome/dist/media-container.d.ts","../../../node_modules/media-chrome/dist/utils/attribute-token-list.d.ts","../../../node_modules/media-chrome/dist/constants.d.ts","../../../node_modules/media-chrome/dist/media-store/state-mediator.d.ts","../../../node_modules/media-chrome/dist/media-store/request-map.d.ts","../../../node_modules/media-chrome/dist/media-store/media-store.d.ts","../../../node_modules/media-chrome/dist/media-controller.d.ts","../../../node_modules/media-chrome/dist/utils/template-parts.d.ts","../../../node_modules/media-chrome/dist/media-theme-element.d.ts","../src/html.ts","../../../node_modules/media-chrome/dist/labels/labels.d.ts","../../../node_modules/media-chrome/dist/utils/time.d.ts","../../../node_modules/media-chrome/dist/media-tooltip.d.ts","../../../node_modules/meLine truncated
+6
View File
@@ -0,0 +1,6 @@
import MediaDialog from './media-chrome/dialog';
declare class MxpDialog extends MediaDialog {
static template: HTMLTemplateElement;
constructor();
}
export default MxpDialog;
+6
View File
@@ -0,0 +1,6 @@
import { DialogOptions, DevlogOptions } from './types';
import { MediaError } from '@mux/playback-core';
export declare function getErrorLogs(error: MediaError, translate?: boolean): {
dialog: DialogOptions;
devlog: DevlogOptions;
};
+38
View File
@@ -0,0 +1,38 @@
import { StreamTypes } from '@mux/playback-core';
import { ValueOf } from '@mux/playback-core';
export declare const getPlayerVersion: () => any;
type MuxURLCustomProps = Partial<{
customDomain: string;
token: string;
}>;
type MuxPosterURLCustomProps = MuxURLCustomProps & Partial<{
thumbnailTime: number;
programTime: number;
}>;
type MuxStoryboardURLCustomProps = MuxURLCustomProps & Partial<{
programStartTime: number;
programEndTime: number;
}>;
export declare const getPosterURLFromPlaybackId: (playbackId?: string, { token, customDomain: domain, thumbnailTime, programTime: program_time, }?: MuxPosterURLCustomProps) => string | undefined;
export declare const getStoryboardURLFromPlaybackId: (playbackId?: string, { token, customDomain: domain, programStartTime: program_start_time, programEndTime: program_end_time, }?: MuxStoryboardURLCustomProps) => string | undefined;
export declare const getStreamTypeFromAttr: (streamTypeAttr: string | null | undefined) => ValueOf<StreamTypes> | undefined;
export declare function castThemeName(themeName?: string): string | undefined;
export declare function toPropName(attrName: string): string;
export declare class AttributeTokenList implements Iterable<string> {
private "AttributeTokenList.#private";
constructor(el?: HTMLElement, attr?: string);
[Symbol.iterator](): ArrayIterator<string>;
readonly length: number;
value: string | undefined;
toString(): string | undefined;
item(index: number): string;
values(): ArrayIterator<string>;
keys(): ArrayIterator<number>;
forEach(callback: (value: string, index: number, list: string[]) => void): void;
add(...tokens: string[]): void;
remove(...tokens: string[]): void;
contains(token: string): boolean;
toggle(token: string, force: boolean): boolean;
replace(oldToken: string, newToken: string): void;
}
export {};
+18
View File
@@ -0,0 +1,18 @@
import { ChildNodePart, Part } from 'media-chrome/dist/media-theme-element.js';
export declare function processEvent(part: Part, value: unknown): boolean;
export declare function processPropertyIdentity(part: Part, value: unknown): boolean;
export declare function processElementAttribute(part: Part, value: unknown): boolean;
export declare function processBooleanAttribute(part: Part, value: unknown): boolean;
export declare function processBooleanNode(part: Part, value: unknown): boolean;
export declare function processPart(part: Part, value: unknown): void;
export declare class TemplateResult {
readonly strings: TemplateStringsArray;
readonly values: unknown[];
readonly processor: any;
readonly stringsKey: string;
constructor(strings: TemplateStringsArray, values: unknown[], processor: any);
readonly template: HTMLTemplateElement;
renderInto(element: Node | ChildNodePart): void;
}
export declare function html(strings: TemplateStringsArray, ...values: unknown[]): TemplateResult;
export declare function render(result: TemplateResult, element: Node | ChildNodePart): void;
+345
View File
@@ -0,0 +1,345 @@
import { MediaController } from 'media-chrome';
import 'media-chrome/dist/experimental/index.js';
import { MediaError } from '@mux/mux-video';
import { StreamTypes, PlaybackTypes, CmcdTypes } from '@mux/playback-core';
import { ValueOf, Metadata, PlaybackEngine, MaxResolutionValue, MinResolutionValue, RenditionOrderValue, Chapter, CuePoint, Tokens } from '@mux/playback-core';
import VideoApiElement from './video-api';
import { AttributeTokenList } from './helpers';
import './themes/gerwig';
import { HlsConfig } from 'hls.js';
export { Tokens };
export { MediaError };
export interface MuxPlayerElementEventMap extends HTMLVideoElementEventMap {
cuepointchange: CustomEvent<{
time: number;
value: any;
}>;
cuepointschange: CustomEvent<Array<{
time: number;
value: any;
}>>;
chapterchange: CustomEvent<{
startTime: number;
endTime: number;
value: string;
}>;
}
interface MuxPlayerElement extends Pick<HTMLVideoElement, Exclude<keyof HTMLVideoElement, 'poster' | 'textTracks' | 'addTextTrack' | 'src' | 'videoTracks' | 'audioTracks' | 'audioRenditions' | 'videoRenditions'>> {
addEventListener<K extends keyof MuxPlayerElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: MuxPlayerElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MuxPlayerElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: MuxPlayerElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare class MuxPlayerElement extends VideoApiElement implements MuxPlayerElement {
private "MuxPlayerElement.#private";
static readonly observedAttributes: string[];
constructor();
readonly mediaTheme: Element | null | undefined;
readonly mediaController: MediaController | null | undefined;
connectedCallback(): void;
attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string): void;
preferCmcd: ValueOf<CmcdTypes> | undefined;
readonly hasPlayed: boolean;
readonly inLiveWindow: boolean | undefined;
readonly _hls: PlaybackEngine | undefined;
readonly mux: Readonly<import("mux-embed").MuxOnVideoElement | import("mux-embed").DeletedMuxOnVideoElement | undefined>;
/*
* Gets the theme.
* Sets the theme.
*/
theme: string;
/*
* Get the theme attributes in a plain object (camelCase keys).
* This doesn't include already defined attributes. e.g. streamType, disabled, etc.
* Set the theme attributes via a plain object.
*/
themeProps: Record<string, any> | undefined;
/*
* Get Mux asset playback id.
* Set Mux asset playback id.
*/
playbackId: string | undefined;
/*
* Get the string that reflects the src HTML attribute, which contains the URL of a media resource to use.
* Set the string that reflects the src HTML attribute, which contains the URL of a media resource to use.
*/
src: string | undefined;
/*
* Gets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.
* Sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.
*/
poster: string | undefined;
/*
* Return the storyboard-src attribute URL
* Set the storyboard-src attribute URL
*/
storyboardSrc: string | undefined;
/*
* Return the storyboard URL when a playback ID or storyboard-src is provided,
* we aren't an audio player and the stream-type isn't live.
*/
readonly storyboard: string | undefined;
/*
* Gets the boolean indicator this is an audio player.
* Sets the boolean indicator this is an audio player.
*/
audio: boolean;
readonly hotkeys: AttributeTokenList;
nohotkeys: boolean;
/*
* Get the thumbnailTime offset used for the poster image.
* Set the thumbnailTime offset used for the poster image.
*/
thumbnailTime: number | undefined;
/*
* Get the title shown in the player.
* Set the title shown in the player.
*/
title: string;
/*
* Gets the data URL of a placeholder image shown before the thumbnail is loaded.
* Sets the data URL of a placeholder image shown before the thumbnail is loaded.
*/
placeholder: string;
/*
* Get the primary color used by the player.
* Set the primary color used by the player.
*/
primaryColor: string | undefined;
/*
* Get the secondary color used by the player.
* Set the secondary color used by the player.
*/
secondaryColor: string | undefined;
/*
* Get the accent color used by the player.
* Set the accent color used by the player.
*/
accentColor: string | undefined;
defaultShowRemainingTime: boolean | undefined;
/*
* Get the playback rates applied to the playback rate control.
* Set the playback rates applied to the playback rate control.
*/
playbackRates: number[] | undefined;
/*
* Get the offset applied to the forward seek button.
* Set the offset applied to the forward seek button.
*/
forwardSeekOffset: number | undefined;
/*
* Get the offset applied to the backward seek button.
* Set the offset applied to the forward seek button.
*/
backwardSeekOffset: number | undefined;
/*
* Get the boolean value of default hidden captions.
* By default returns false so captions are enabled on initial load.
* Set the default hidden captions flag.
*/
defaultHiddenCaptions: boolean | undefined;
/*
* Get the boolean value of default hidden captions.
* By default returns false so captions are enabled on initial load.
* Set the default hidden captions flag.
*/
defaultDuration: number | undefined;
/*
* Get the player software name. Used by Mux Data.
*/
readonly playerSoftwareName: string;
/*
* Get the player software version. Used by Mux Data.
*/
readonly playerSoftwareVersion: any;
/*
* Get the beacon collection domain. Used by Mux Data.
* Set the beacon collection domain. Used by Mux Data.
*/
beaconCollectionDomain: string | undefined;
maxResolution: MaxResolutionValue | undefined;
minResolution: MinResolutionValue | undefined;
renditionOrder: RenditionOrderValue | undefined;
programStartTime: number | undefined;
programEndTime: number | undefined;
assetStartTime: number | undefined;
assetEndTime: number | undefined;
extraSourceParams: Record<string, any>;
/*
* Get Mux asset custom domain.
* Set Mux asset custom domain.
*/
customDomain: string | undefined;
/*
* Get Mux Data env key.
* Set Mux Data env key.
*/
envKey: string | undefined;
/*
* Get no-volume-pref flag.
* Set video engine debug flag.
*/
noVolumePref: boolean;
/*
* Get video engine debug flag.
* Set video engine debug flag.
*/
debug: boolean;
/*
* Get video engine disable tracking flag.
* Set video engine disable tracking flag.
*/
disableTracking: boolean;
/*
* Get video engine disable cookies flag.
* Set video engine disable cookies flag.
*/
disableCookies: boolean;
/*
* Get stream type.
* Set stream type.
*/
streamType: string;
defaultStreamType: ValueOf<StreamTypes> | undefined;
targetLiveWindow: number | undefined;
readonly liveEdgeStart: number | undefined;
/*
* Get the start time.
* Set the start time.
*/
startTime: number | undefined;
preferPlayback: ValueOf<PlaybackTypes> | undefined;
/*
* Get the metadata object for Mux Data.
* Set the metadata object for Mux Data.
*/
metadata: Readonly<Metadata> | undefined;
/*
* Get the metadata object for Mux Data.
* Set the metadata object for Mux Data.
*/
_hlsConfig: Readonly<Partial<HlsConfig>> | undefined;
addCuePoints<T = any>(cuePoints: CuePoint<T>[]): Promise<TextTrack | undefined>;
readonly activeCuePoint: {
time: number;
value: any;
} | undefined;
readonly cuePoints: {
time: number;
value: any;
}[];
addChapters(chapters: Chapter[]): Promise<TextTrack> | undefined;
readonly activeChapter: {
startTime: number;
endTime: number;
value: string;
} | undefined;
readonly chapters: {
startTime: number;
endTime: number;
value: string;
}[];
getStartDate(): Date | undefined;
readonly currentPdt: Date | undefined;
/*
* Get the signing tokens for the Mux asset URL's.
* Set the signing tokens for the Mux asset URL's.
*/
tokens: Tokens;
/*
* Get the playback token for signing the src URL.
* Set the playback token for signing the src URL.
*/
playbackToken: string | undefined;
/*
* Get the playback token for signing the src URL.
* Set the playback token for signing the src URL.
*/
drmToken: string | undefined;
/*
* Get the thumbnail token for signing the poster URL.
* Set the thumbnail token for signing the poster URL.
*/
thumbnailToken: string | undefined;
/*
* Get the storyboard token for signing the storyboard URL.
* Set the storyboard token for signing the storyboard URL.
*/
storyboardToken: string | undefined;
addTextTrack(kind: TextTrackKind, label: string, lang?: string, id?: string): TextTrack | undefined;
removeTextTrack(track: TextTrack): void;
readonly textTracks: TextTrackList | undefined;
castReceiver: string | undefined;
castCustomData: Record<string, any> | undefined;
noTooltips: boolean;
}
export declare function getVideoAttribute(el: MuxPlayerElement, name: string): string | null;
export default MuxPlayerElement;
+5
View File
@@ -0,0 +1,5 @@
import { DevlogOptions } from './types';
export declare function log(...args: any[]): void;
export declare function warn(...args: any[]): void;
export declare function error(...args: any[]): void;
export declare function devlog(opts: DevlogOptions): void;
@@ -0,0 +1,13 @@
import { globalThis } from '../polyfills';
declare class MediaDialog extends globalThis.HTMLElement {
static styles: string;
static template: HTMLTemplateElement;
static observedAttributes: string[];
_previouslyFocusedElement?: Element | null;
constructor();
show(): void;
close(): void;
attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string): void;
connectedCallback(): void;
}
export default MediaDialog;
@@ -0,0 +1,4 @@
type GlobalThis = typeof globalThis;
declare const internalGlobalThis: GlobalThis;
declare const internalDocument: Document;
export { internalGlobalThis as globalThis, internalDocument as document };
+43
View File
@@ -0,0 +1,43 @@
import 'media-chrome/dist/media-theme-element.js';
import './dialog';
import { MuxTemplateProps } from './types';
export declare const template: (props: MuxTemplateProps) => import("./html").TemplateResult;
export declare const Parts: {
TOP: string;
CENTER: string;
BOTTOM: string;
LAYER: string;
MEDIA_LAYER: string;
POSTER_LAYER: string;
VERTICAL_LAYER: string;
CENTERED_LAYER: string;
GESTURE_LAYER: string;
CONTROLLER_LAYER: string;
BUTTON: string;
RANGE: string;
DISPLAY: string;
CONTROL_BAR: string;
MENU_BUTTON: string;
LISTBOX: string;
OPTION: string;
POSTER: string;
LIVE: string;
PLAY: string;
PRE_PLAY: string;
SEEK_BACKWARD: string;
SEEK_FORWARD: string;
MUTE: string;
CAPTIONS: string;
AIRPLAY: string;
PIP: string;
FULLSCREEN: string;
CAST: string;
PLAYBACK_RATE: string;
VOLUME: string;
TIME: string;
TITLE: string;
AUDIO_TRACK: string;
RENDITION: string;
};
export declare const partsListStr: string;
export declare const content: (props: MuxTemplateProps) => import("./html").TemplateResult;
@@ -0,0 +1,6 @@
import { MediaThemeElement } from 'media-chrome/dist/media-theme-element.js';
import 'media-chrome/menu';
declare class MediaThemeClassic extends MediaThemeElement {
static template: HTMLTemplateElement;
}
export default MediaThemeClassic;
@@ -0,0 +1,6 @@
import { MediaThemeElement } from 'media-chrome/dist/media-theme-element.js';
import 'media-chrome/menu';
declare class MediaThemeGerwig extends MediaThemeElement {
static template: HTMLTemplateElement;
}
export default MediaThemeGerwig;
@@ -0,0 +1 @@
export * from 'player.style/microvideo';
@@ -0,0 +1 @@
export * from 'player.style/minimal';
+8
View File
@@ -0,0 +1,8 @@
export declare function stylePropsToString(props: any): string | undefined;
export declare function kebabCase(name: string): string;
export declare function camelCase(name: string): string;
export declare function uniqueId(prefix: string): string;
export declare function toNumberOrUndefined(val: any): number | undefined;
export declare function toQuery(obj: Record<string, any>): string;
export declare function toParams(obj: Record<string, any>): URLSearchParams;
export declare const containsComposedNode: (rootNode: Node, childNode?: Node | Element | null) => boolean;
+65
View File
@@ -0,0 +1,65 @@
import { globalThis } from './polyfills';
import MuxVideoElement from '@mux/mux-video';
export type CastOptions = {
receiverApplicationId: string;
autoJoinPolicy: string;
androidReceiverCompatible: boolean;
language: string;
resumeSavedSession: boolean;
};
export type MuxVideoElementExt = MuxVideoElement & {
requestCast(options: CastOptions): Promise<undefined>;
};
type PartialHTMLVideoElement = Pick<HTMLVideoElement, Exclude<keyof HTMLVideoElement, 'disablePictureInPicture' | 'height' | 'width' | 'error' | 'seeking' | 'onenterpictureinpicture' | 'onleavepictureinpicture' | 'load' | 'cancelVideoFrameCallback' | 'getVideoPlaybackQuality' | 'requestPictureInPicture' | 'requestVideoFrameCallback' | 'controls' | 'disableRemotePlayback' | 'mediaKeys' | 'networkState' | 'onencrypted' | 'onwaitingforkey' | 'played' | 'remote' | 'srcObject' | 'textTracks' | 'addTextTrack' | 'canPlayType' | 'fastSeek' | 'setMediaKeys' | 'HAVE_CURRENT_DATA' | 'HAVE_ENOUGH_DATA' | 'HAVE_FUTURE_DATA' | 'HAVE_METADATA' | 'HAVE_NOTHING' | 'NETWORK_EMPTY' | 'NETWORK_IDLE' | 'NETWORK_LOADING' | 'NETWORK_NO_SOURCE' | 'src' | 'poster' | 'mux'>>;
interface VideoApiElement extends PartialHTMLVideoElement, HTMLElement {
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare class VideoApiElement extends globalThis.HTMLElement implements VideoApiElement {
private "VideoApiElement.#private";
static readonly observedAttributes: string[];
/**
* Create a HTMLVideoElement like API with opt-in methods to expose publicly.
* This class is intentionally not extending MuxVideoElement but composing it
* to opt in methods and not expose too much. More flexibility in the future.
*/
constructor();
/**
* Gets called from mux-player when mux-video is rendered and upgraded.
* We might just merge VideoApiElement in MuxPlayerElement and remove this?
*/
init(): void;
attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string): void;
play(): Promise<void>;
pause(): void;
load(): void;
requestCast(options: CastOptions): Promise<undefined> | undefined;
readonly media: MuxVideoElementExt | null | undefined;
readonly audioTracks: import("media-tracks").AudioTrackList;
readonly videoTracks: import("media-tracks").VideoTrackList;
readonly audioRenditions: import("media-tracks").AudioRenditionList;
readonly videoRenditions: import("media-tracks").VideoRenditionList;
readonly paused: boolean;
readonly duration: number;
readonly ended: boolean;
readonly buffered: TimeRanges;
readonly seekable: TimeRanges;
readonly readyState: number;
readonly videoWidth: number;
readonly videoHeight: number;
readonly currentSrc: string;
currentTime: number;
volume: number;
playbackRate: number;
defaultPlaybackRate: number;
crossOrigin: string | null;
autoplay: boolean;
loop: boolean;
muted: boolean;
defaultMuted: boolean;
playsInline: boolean;
preload: HTMLVideoElement["preload"];
}
export default VideoApiElement;
+6
View File
@@ -0,0 +1,6 @@
import MediaDialog from './media-chrome/dialog';
declare class MxpDialog extends MediaDialog {
static template: HTMLTemplateElement;
constructor();
}
export default MxpDialog;
+6
View File
@@ -0,0 +1,6 @@
import type { DialogOptions, DevlogOptions } from './types';
import { MediaError } from '@mux/playback-core';
export declare function getErrorLogs(error: MediaError, translate?: boolean): {
dialog: DialogOptions;
devlog: DevlogOptions;
};
+39
View File
@@ -0,0 +1,39 @@
import { StreamTypes } from '@mux/playback-core';
import type { ValueOf } from '@mux/playback-core';
export declare const getPlayerVersion: () => any;
type MuxURLCustomProps = Partial<{
customDomain: string;
token: string;
}>;
type MuxPosterURLCustomProps = MuxURLCustomProps & Partial<{
thumbnailTime: number;
programTime: number;
}>;
type MuxStoryboardURLCustomProps = MuxURLCustomProps & Partial<{
programStartTime: number;
programEndTime: number;
}>;
export declare const getPosterURLFromPlaybackId: (playbackId?: string, { token, customDomain: domain, thumbnailTime, programTime: program_time, }?: MuxPosterURLCustomProps) => string | undefined;
export declare const getStoryboardURLFromPlaybackId: (playbackId?: string, { token, customDomain: domain, programStartTime: program_start_time, programEndTime: program_end_time, }?: MuxStoryboardURLCustomProps) => string | undefined;
export declare const getStreamTypeFromAttr: (streamTypeAttr: string | null | undefined) => ValueOf<StreamTypes> | undefined;
export declare function castThemeName(themeName?: string): string | undefined;
export declare function toPropName(attrName: string): string;
export declare class AttributeTokenList implements Iterable<string> {
#private;
constructor(el?: HTMLElement, attr?: string);
[Symbol.iterator](): ArrayIterator<string>;
get length(): number;
get value(): string | undefined;
set value(val: string | undefined);
toString(): string | undefined;
item(index: number): string;
values(): ArrayIterator<string>;
keys(): ArrayIterator<number>;
forEach(callback: (value: string, index: number, list: string[]) => void): void;
add(...tokens: string[]): void;
remove(...tokens: string[]): void;
contains(token: string): boolean;
toggle(token: string, force: boolean): boolean;
replace(oldToken: string, newToken: string): void;
}
export {};
+18
View File
@@ -0,0 +1,18 @@
import { ChildNodePart, Part } from 'media-chrome/dist/media-theme-element.js';
export declare function processEvent(part: Part, value: unknown): boolean;
export declare function processPropertyIdentity(part: Part, value: unknown): boolean;
export declare function processElementAttribute(part: Part, value: unknown): boolean;
export declare function processBooleanAttribute(part: Part, value: unknown): boolean;
export declare function processBooleanNode(part: Part, value: unknown): boolean;
export declare function processPart(part: Part, value: unknown): void;
export declare class TemplateResult {
readonly strings: TemplateStringsArray;
readonly values: unknown[];
readonly processor: any;
readonly stringsKey: string;
constructor(strings: TemplateStringsArray, values: unknown[], processor: any);
get template(): HTMLTemplateElement;
renderInto(element: Node | ChildNodePart): void;
}
export declare function html(strings: TemplateStringsArray, ...values: unknown[]): TemplateResult;
export declare function render(result: TemplateResult, element: Node | ChildNodePart): void;
+396
View File
@@ -0,0 +1,396 @@
import { MediaController } from 'media-chrome';
import 'media-chrome/dist/experimental/index.js';
import { MediaError } from '@mux/mux-video';
import { StreamTypes, PlaybackTypes, CmcdTypes } from '@mux/playback-core';
import type { ValueOf, Metadata, PlaybackEngine, MaxResolutionValue, MinResolutionValue, RenditionOrderValue, Chapter, CuePoint, Tokens } from '@mux/playback-core';
import VideoApiElement from './video-api';
import { AttributeTokenList } from './helpers';
import './themes/gerwig';
import { HlsConfig } from 'hls.js';
export type { Tokens };
export { MediaError };
export interface MuxPlayerElementEventMap extends HTMLVideoElementEventMap {
cuepointchange: CustomEvent<{
time: number;
value: any;
}>;
cuepointschange: CustomEvent<Array<{
time: number;
value: any;
}>>;
chapterchange: CustomEvent<{
startTime: number;
endTime: number;
value: string;
}>;
}
interface MuxPlayerElement extends Omit<HTMLVideoElement, 'poster' | 'textTracks' | 'addTextTrack' | 'src' | 'videoTracks' | 'audioTracks' | 'audioRenditions' | 'videoRenditions'> {
addEventListener<K extends keyof MuxPlayerElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: MuxPlayerElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MuxPlayerElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: MuxPlayerElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare class MuxPlayerElement extends VideoApiElement implements MuxPlayerElement {
#private;
static get observedAttributes(): string[];
constructor();
get mediaTheme(): Element | null | undefined;
get mediaController(): MediaController | null | undefined;
connectedCallback(): void;
attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string): void;
get preferCmcd(): ValueOf<CmcdTypes> | undefined;
set preferCmcd(value: ValueOf<CmcdTypes> | undefined);
get hasPlayed(): boolean;
get inLiveWindow(): boolean | undefined;
get _hls(): PlaybackEngine | undefined;
get mux(): Readonly<import("mux-embed").MuxOnVideoElement | import("mux-embed").DeletedMuxOnVideoElement | undefined>;
/**
* Gets the theme.
*/
get theme(): string;
/**
* Sets the theme.
*/
set theme(val: string);
/**
* Get the theme attributes in a plain object (camelCase keys).
* This doesn't include already defined attributes. e.g. streamType, disabled, etc.
*/
get themeProps(): Record<string, any> | undefined;
/**
* Set the theme attributes via a plain object.
*/
set themeProps(props: Record<string, any> | undefined);
/**
* Get Mux asset playback id.
*/
get playbackId(): string | undefined;
/**
* Set Mux asset playback id.
*/
set playbackId(val: string | undefined);
/**
* Get the string that reflects the src HTML attribute, which contains the URL of a media resource to use.
*/
get src(): string | undefined;
/**
* Set the string that reflects the src HTML attribute, which contains the URL of a media resource to use.
*/
set src(val: string | undefined);
/**
* Gets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.
*/
get poster(): string | undefined;
/**
* Sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.
*/
set poster(val: string | undefined);
/**
* Return the storyboard-src attribute URL
*/
get storyboardSrc(): string | undefined;
/**
* Set the storyboard-src attribute URL
*/
set storyboardSrc(src: string | undefined);
/**
* Return the storyboard URL when a playback ID or storyboard-src is provided,
* we aren't an audio player and the stream-type isn't live.
*/
get storyboard(): string | undefined;
/**
* Gets the boolean indicator this is an audio player.
*/
get audio(): boolean;
/**
* Sets the boolean indicator this is an audio player.
*/
set audio(val: boolean);
get hotkeys(): AttributeTokenList;
get nohotkeys(): boolean;
set nohotkeys(val: boolean);
/**
* Get the thumbnailTime offset used for the poster image.
*/
get thumbnailTime(): number | undefined;
/**
* Set the thumbnailTime offset used for the poster image.
*/
set thumbnailTime(val: number | undefined);
/**
* Get the title shown in the player.
*/
get title(): string;
/**
* Set the title shown in the player.
*/
set title(val: string);
/**
* Gets the data URL of a placeholder image shown before the thumbnail is loaded.
*/
get placeholder(): string;
/**
* Sets the data URL of a placeholder image shown before the thumbnail is loaded.
*/
set placeholder(val: string);
/**
* Get the primary color used by the player.
*/
get primaryColor(): string | undefined;
/**
* Set the primary color used by the player.
*/
set primaryColor(val: string | undefined);
/**
* Get the secondary color used by the player.
*/
get secondaryColor(): string | undefined;
/**
* Set the secondary color used by the player.
*/
set secondaryColor(val: string | undefined);
/**
* Get the accent color used by the player.
*/
get accentColor(): string | undefined;
/**
* Set the accent color used by the player.
*/
set accentColor(val: string | undefined);
get defaultShowRemainingTime(): boolean | undefined;
set defaultShowRemainingTime(val: boolean | undefined);
/**
* Get the playback rates applied to the playback rate control.
*/
get playbackRates(): number[] | undefined;
/**
* Set the playback rates applied to the playback rate control.
*/
set playbackRates(val: number[] | undefined);
/**
* Get the offset applied to the forward seek button.
*/
get forwardSeekOffset(): number | undefined;
/**
* Set the offset applied to the forward seek button.
*/
set forwardSeekOffset(val: number | undefined);
/**
* Get the offset applied to the backward seek button.
*/
get backwardSeekOffset(): number | undefined;
/**
* Set the offset applied to the forward seek button.
*/
set backwardSeekOffset(val: number | undefined);
/**
* Get the boolean value of default hidden captions.
* By default returns false so captions are enabled on initial load.
*/
get defaultHiddenCaptions(): boolean | undefined;
/**
* Set the default hidden captions flag.
*/
set defaultHiddenCaptions(val: boolean | undefined);
/**
* Get the boolean value of default hidden captions.
* By default returns false so captions are enabled on initial load.
*/
get defaultDuration(): number | undefined;
/**
* Set the default hidden captions flag.
*/
set defaultDuration(val: number | undefined);
/**
* Get the player software name. Used by Mux Data.
*/
get playerSoftwareName(): string;
/**
* Get the player software version. Used by Mux Data.
*/
get playerSoftwareVersion(): any;
/**
* Get the beacon collection domain. Used by Mux Data.
*/
get beaconCollectionDomain(): string | undefined;
/**
* Set the beacon collection domain. Used by Mux Data.
*/
set beaconCollectionDomain(val: string | undefined);
get maxResolution(): MaxResolutionValue | undefined;
set maxResolution(val: MaxResolutionValue | undefined);
get minResolution(): MinResolutionValue | undefined;
set minResolution(val: MinResolutionValue | undefined);
get renditionOrder(): RenditionOrderValue | undefined;
set renditionOrder(val: RenditionOrderValue | undefined);
get programStartTime(): number | undefined;
set programStartTime(val: number | undefined);
get programEndTime(): number | undefined;
set programEndTime(val: number | undefined);
get assetStartTime(): number | undefined;
set assetStartTime(val: number | undefined);
get assetEndTime(): number | undefined;
set assetEndTime(val: number | undefined);
get extraSourceParams(): Record<string, any>;
set extraSourceParams(value: Record<string, any>);
/**
* Get Mux asset custom domain.
*/
get customDomain(): string | undefined;
/**
* Set Mux asset custom domain.
*/
set customDomain(val: string | undefined);
/**
* Get Mux Data env key.
*/
get envKey(): string | undefined;
/**
* Set Mux Data env key.
*/
set envKey(val: string | undefined);
/**
* Get no-volume-pref flag.
*/
get noVolumePref(): boolean;
/**
* Set video engine debug flag.
*/
set noVolumePref(val: boolean);
/**
* Get video engine debug flag.
*/
get debug(): boolean;
/**
* Set video engine debug flag.
*/
set debug(val: boolean);
/**
* Get video engine disable tracking flag.
*/
get disableTracking(): boolean;
/**
* Set video engine disable tracking flag.
*/
set disableTracking(val: boolean);
/**
* Get video engine disable cookies flag.
*/
get disableCookies(): boolean;
/**
* Set video engine disable cookies flag.
*/
set disableCookies(val: boolean);
/**
* Get stream type.
*/
get streamType(): string;
/**
* Set stream type.
*/
set streamType(val: string);
get defaultStreamType(): ValueOf<StreamTypes> | undefined;
set defaultStreamType(val: ValueOf<StreamTypes> | undefined);
get targetLiveWindow(): number | undefined;
set targetLiveWindow(val: number | undefined);
get liveEdgeStart(): number | undefined;
/**
* Get the start time.
*/
get startTime(): number | undefined;
/**
* Set the start time.
*/
set startTime(val: number | undefined);
get preferPlayback(): ValueOf<PlaybackTypes> | undefined;
set preferPlayback(val: ValueOf<PlaybackTypes> | undefined);
/**
* Get the metadata object for Mux Data.
*/
get metadata(): Readonly<Metadata> | undefined;
/**
* Set the metadata object for Mux Data.
*/
set metadata(val: Readonly<Metadata> | undefined);
/**
* Get the metadata object for Mux Data.
*/
get _hlsConfig(): Readonly<Partial<HlsConfig>> | undefined;
/**
* Set the metadata object for Mux Data.
*/
set _hlsConfig(val: Readonly<Partial<HlsConfig>> | undefined);
addCuePoints<T = any>(cuePoints: CuePoint<T>[]): Promise<TextTrack | undefined>;
get activeCuePoint(): {
time: number;
value: any;
} | undefined;
get cuePoints(): {
time: number;
value: any;
}[];
addChapters(chapters: Chapter[]): Promise<TextTrack> | undefined;
get activeChapter(): {
startTime: number;
endTime: number;
value: string;
} | undefined;
get chapters(): {
startTime: number;
endTime: number;
value: string;
}[];
getStartDate(): Date | undefined;
get currentPdt(): Date | undefined;
/**
* Get the signing tokens for the Mux asset URL's.
*/
get tokens(): Tokens;
/**
* Set the signing tokens for the Mux asset URL's.
*/
set tokens(val: Tokens | undefined);
/**
* Get the playback token for signing the src URL.
*/
get playbackToken(): string | undefined;
/**
* Set the playback token for signing the src URL.
*/
set playbackToken(val: string | undefined);
/**
* Get the playback token for signing the src URL.
*/
get drmToken(): string | undefined;
/**
* Set the playback token for signing the src URL.
*/
set drmToken(val: string | undefined);
/**
* Get the thumbnail token for signing the poster URL.
*/
get thumbnailToken(): string | undefined;
/**
* Set the thumbnail token for signing the poster URL.
*/
set thumbnailToken(val: string | undefined);
/**
* Get the storyboard token for signing the storyboard URL.
*/
get storyboardToken(): string | undefined;
/**
* Set the storyboard token for signing the storyboard URL.
*/
set storyboardToken(val: string | undefined);
addTextTrack(kind: TextTrackKind, label: string, lang?: string, id?: string): TextTrack | undefined;
removeTextTrack(track: TextTrack): void;
get textTracks(): TextTrackList | undefined;
get castReceiver(): string | undefined;
set castReceiver(val: string | undefined);
get castCustomData(): Record<string, any> | undefined;
set castCustomData(val: Record<string, any> | undefined);
get noTooltips(): boolean;
set noTooltips(val: boolean);
}
export declare function getVideoAttribute(el: MuxPlayerElement, name: string): string | null;
export default MuxPlayerElement;
+5
View File
@@ -0,0 +1,5 @@
import type { DevlogOptions } from './types';
export declare function log(...args: any[]): void;
export declare function warn(...args: any[]): void;
export declare function error(...args: any[]): void;
export declare function devlog(opts: DevlogOptions): void;
@@ -0,0 +1,13 @@
import { globalThis } from '../polyfills';
declare class MediaDialog extends globalThis.HTMLElement {
static styles: string;
static template: HTMLTemplateElement;
static observedAttributes: string[];
_previouslyFocusedElement?: Element | null;
constructor();
show(): void;
close(): void;
attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string): void;
connectedCallback(): void;
}
export default MediaDialog;
+4
View File
@@ -0,0 +1,4 @@
type GlobalThis = typeof globalThis;
declare const internalGlobalThis: GlobalThis;
declare const internalDocument: Document;
export { internalGlobalThis as globalThis, internalDocument as document };
+43
View File
@@ -0,0 +1,43 @@
import 'media-chrome/dist/media-theme-element.js';
import './dialog';
import type { MuxTemplateProps } from './types';
export declare const template: (props: MuxTemplateProps) => import("./html").TemplateResult;
export declare const Parts: {
TOP: string;
CENTER: string;
BOTTOM: string;
LAYER: string;
MEDIA_LAYER: string;
POSTER_LAYER: string;
VERTICAL_LAYER: string;
CENTERED_LAYER: string;
GESTURE_LAYER: string;
CONTROLLER_LAYER: string;
BUTTON: string;
RANGE: string;
DISPLAY: string;
CONTROL_BAR: string;
MENU_BUTTON: string;
LISTBOX: string;
OPTION: string;
POSTER: string;
LIVE: string;
PLAY: string;
PRE_PLAY: string;
SEEK_BACKWARD: string;
SEEK_FORWARD: string;
MUTE: string;
CAPTIONS: string;
AIRPLAY: string;
PIP: string;
FULLSCREEN: string;
CAST: string;
PLAYBACK_RATE: string;
VOLUME: string;
TIME: string;
TITLE: string;
AUDIO_TRACK: string;
RENDITION: string;
};
export declare const partsListStr: string;
export declare const content: (props: MuxTemplateProps) => import("./html").TemplateResult;
@@ -0,0 +1,6 @@
import { MediaThemeElement } from 'media-chrome/dist/media-theme-element.js';
import 'media-chrome/menu';
declare class MediaThemeClassic extends MediaThemeElement {
static template: HTMLTemplateElement;
}
export default MediaThemeClassic;
@@ -0,0 +1,6 @@
import { MediaThemeElement } from 'media-chrome/dist/media-theme-element.js';
import 'media-chrome/menu';
declare class MediaThemeGerwig extends MediaThemeElement {
static template: HTMLTemplateElement;
}
export default MediaThemeGerwig;
@@ -0,0 +1 @@
export * from 'player.style/microvideo';
@@ -0,0 +1 @@
export * from 'player.style/minimal';
+8
View File
@@ -0,0 +1,8 @@
export declare function stylePropsToString(props: any): string | undefined;
export declare function kebabCase(name: string): string;
export declare function camelCase(name: string): string;
export declare function uniqueId(prefix: string): string;
export declare function toNumberOrUndefined(val: any): number | undefined;
export declare function toQuery(obj: Record<string, any>): string;
export declare function toParams(obj: Record<string, any>): URLSearchParams;
export declare const containsComposedNode: (rootNode: Node, childNode?: Node | Element | null) => boolean;
+76
View File
@@ -0,0 +1,76 @@
import { globalThis } from './polyfills';
import type MuxVideoElement from '@mux/mux-video';
export type CastOptions = {
receiverApplicationId: string;
autoJoinPolicy: string;
androidReceiverCompatible: boolean;
language: string;
resumeSavedSession: boolean;
};
export type MuxVideoElementExt = MuxVideoElement & {
requestCast(options: CastOptions): Promise<undefined>;
};
type PartialHTMLVideoElement = Omit<HTMLVideoElement, 'disablePictureInPicture' | 'height' | 'width' | 'error' | 'seeking' | 'onenterpictureinpicture' | 'onleavepictureinpicture' | 'load' | 'cancelVideoFrameCallback' | 'getVideoPlaybackQuality' | 'requestPictureInPicture' | 'requestVideoFrameCallback' | 'controls' | 'disableRemotePlayback' | 'mediaKeys' | 'networkState' | 'onencrypted' | 'onwaitingforkey' | 'played' | 'remote' | 'srcObject' | 'textTracks' | 'addTextTrack' | 'canPlayType' | 'fastSeek' | 'setMediaKeys' | 'HAVE_CURRENT_DATA' | 'HAVE_ENOUGH_DATA' | 'HAVE_FUTURE_DATA' | 'HAVE_METADATA' | 'HAVE_NOTHING' | 'NETWORK_EMPTY' | 'NETWORK_IDLE' | 'NETWORK_LOADING' | 'NETWORK_NO_SOURCE' | 'src' | 'poster' | 'mux'>;
interface VideoApiElement extends PartialHTMLVideoElement, HTMLElement {
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare class VideoApiElement extends globalThis.HTMLElement implements VideoApiElement {
#private;
static get observedAttributes(): string[];
/**
* Create a HTMLVideoElement like API with opt-in methods to expose publicly.
* This class is intentionally not extending MuxVideoElement but composing it
* to opt in methods and not expose too much. More flexibility in the future.
*/
constructor();
/**
* Gets called from mux-player when mux-video is rendered and upgraded.
* We might just merge VideoApiElement in MuxPlayerElement and remove this?
*/
init(): void;
attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string): void;
play(): Promise<void>;
pause(): void;
load(): void;
requestCast(options: CastOptions): Promise<undefined> | undefined;
get media(): MuxVideoElementExt | null | undefined;
get audioTracks(): import("media-tracks").AudioTrackList;
get videoTracks(): import("media-tracks").VideoTrackList;
get audioRenditions(): import("media-tracks").AudioRenditionList;
get videoRenditions(): import("media-tracks").VideoRenditionList;
get paused(): boolean;
get duration(): number;
get ended(): boolean;
get buffered(): TimeRanges;
get seekable(): TimeRanges;
get readyState(): number;
get videoWidth(): number;
get videoHeight(): number;
get currentSrc(): string;
get currentTime(): number;
set currentTime(val: number);
get volume(): number;
set volume(val: number);
get playbackRate(): number;
set playbackRate(val: number);
get defaultPlaybackRate(): number;
set defaultPlaybackRate(val: number);
get crossOrigin(): string | null;
set crossOrigin(val: string | null);
get autoplay(): boolean;
set autoplay(val: boolean);
get loop(): boolean;
set loop(val: boolean);
get muted(): boolean;
set muted(val: boolean);
get defaultMuted(): boolean;
set defaultMuted(val: boolean);
get playsInline(): boolean;
set playsInline(val: boolean);
get preload(): HTMLVideoElement["preload"];
set preload(val: HTMLVideoElement["preload"]);
}
export default VideoApiElement;