import type Hls from 'hls.js'; import { VdsEvent } from '../../base/events'; export declare type HlsEvents = { 'vds-hls-load': HlsLoadEvent; 'vds-hls-load-error': HlsLoadErrorEvent; 'vds-hls-build': HlsBuildEvent; 'vds-hls-attach': HlsAttachEvent; 'vds-hls-detach': HlsDetachEvent; 'vds-hls-no-support': HlsNoSupportEvent; }; /** * Fired when the `hls.js` library has been loaded. This will not fire if you're bundling it * locally OR if it's been cached already. * * @event */ export declare type HlsLoadEvent = VdsEvent; /** * Fired when the `hls.js` library fails to load from a remote source given via `hlsLibrary`. * * @event */ export declare type HlsLoadErrorEvent = VdsEvent; /** * Fired when the `hls.js` instance is built. This will not fire if the browser natively * supports HLS. * * @event */ export declare type HlsBuildEvent = VdsEvent; /** * Fired when the `hls.js` instance has attached itself to the media element. This will not * fire if the browser natively supports HLS. * * @event */ export declare type HlsAttachEvent = VdsEvent; /** * Fired when the `hls.js` instance has detached itself from the media element. * * @event */ export declare type HlsDetachEvent = VdsEvent; /** * Fired when the browser doesn't support HLS natively and `hls.js` doesn't support * this enviroment either, most likely due to missing Media Extensions. * * @event */ export declare type HlsNoSupportEvent = VdsEvent;