twitch-video-element
Version:
A custom element for the Twitch player with an API that matches the `<video>` API
17 lines (15 loc) • 498 B
TypeScript
declare class CustomVideoElement extends HTMLVideoElement {
static readonly observedAttributes: string[];
attributeChangedCallback(
attrName: string,
oldValue?: string | null,
newValue?: string | null
): void;
connectedCallback(): void;
disconnectedCallback(): void;
config: {
// Time in the video where playback starts. Specifies hours, minutes, and seconds. Default: 0h0m0s (the start of the video).
time?: number;
}
}
export { CustomVideoElement as default };