@epiclabs/epic-video-player
Version:
Video player wrapper to support different video sources with an unified interface
14 lines (13 loc) • 563 B
TypeScript
import * as dashjs from 'dashjs';
import { IPlayerConfig, IRendition } from './models';
import { Player } from './player';
export declare class PlayerDash extends Player<dashjs.MediaPlayerClass> {
static getCodecName(codec: string): string;
constructor(url: string, htmlPlayer: HTMLVideoElement, config: IPlayerConfig);
load(): void;
destroy(): void;
getRenditions(): IRendition[];
setRendition(rendition: IRendition | number, immediately: boolean): void;
getCurrentRendition(): IRendition;
private convertBitratesToIRenditions;
}