me-vp
Version:
change the default style of the video player
23 lines (21 loc) • 709 B
text/typescript
abstract class VideoPlayerAbstract {
constructor(
protected src: string,
protected container: string,
protected width: string,
protected skipTime: Number,
protected theme: {
color: string;
backgroundColor: string;
accent: string;
}
) {}
protected abstract createVideoContainer(): HTMLElement;
protected abstract createVideo(): HTMLVideoElement;
protected abstract createControlContainer(): HTMLElement;
protected abstract createControl(): HTMLElement;
protected abstract createLoader(): HTMLElement;
protected abstract addEvents(): void;
protected abstract getTime(time: number): string;
}
export default VideoPlayerAbstract;