@makiwin/ngx-plyr
Version:
## ngx-plyr
19 lines (18 loc) • 525 B
TypeScript
import * as Plyr from 'plyr';
export interface PlyrDriverCreateParams {
options: Plyr.Options;
videoElement: HTMLVideoElement;
}
export interface PlyrDriverUpdateSourceParams {
plyr: Plyr;
source: Plyr.SourceInfo;
videoElement: HTMLVideoElement;
}
export interface PlyrDriverDestroyParams {
plyr: Plyr;
}
export interface PlyrDriver {
create(params: PlyrDriverCreateParams): Plyr;
updateSource(params: PlyrDriverUpdateSourceParams): void;
destroy(params: PlyrDriverDestroyParams): void;
}