twitch-video-element
Version:
A custom element for the Twitch player with an API that matches the `<video>` API
15 lines (14 loc) • 462 B
TypeScript
export default 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;
}
}