diff --git a/hls-video-element.d.ts b/hls-video-element.d.ts index a3622a8..e9e5278 100644 --- a/hls-video-element.d.ts +++ b/hls-video-element.d.ts @@ -1,7 +1,11 @@ import { CustomVideoElement } from 'custom-media-element'; import Hls from 'hls.js'; -declare class HLSVideoElement extends CustomVideoElement { +type HlsVideoElementConstructor = { new(): T }; + +export function HlsVideoMixin(superclass: any): HlsVideoElementConstructor; + +export class HLSVideoElement extends CustomVideoElement { /** * The current instance of the HLS.js library. * @@ -18,11 +22,6 @@ declare class HLSVideoElement extends CustomVideoElement { */ attributeChangedCallback(attrName: string, oldValue: any, newValue: any): void; - /** - * Loads the HLS.js instance and attach it to the video element. - */ - load(): Promise; - /** * Unloads the HLS.js instance and detaches it from the video element. */