UNPKG

@epiclabs/epic-video-player

Version:

Video player wrapper to support different video sources with an unified interface

13 lines (12 loc) 491 B
import Hls from 'hls.js'; import { IPlayerConfig, IRendition } from './models'; import { Player } from './player'; export declare class PlayerHls extends Player<Hls> { private static convertLevelsToIRenditions; constructor(url: string, htmlPlayer: HTMLVideoElement, config: IPlayerConfig); load(): void; destroy(): void; getRenditions(): IRendition[]; setRendition(rendition: IRendition | number, immediately: boolean): void; getCurrentRendition(): IRendition; }