diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..2814aa3 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,26 @@ +/** + * VideoPlayer is a modular private video player build with hls.js and dash.js in mind + * + * author: db123 at db + * creation: 21/4/2026 + */ + +class VP { + videoElement: HTMLElement | null; + videoSources?: NodeListOf; + config?: Array; + + /** + * @param {string} video The targeted video element + * @param {Array} config The config array + */ + constructor(video: string, config: Array = []) { + this.videoElement = document.querySelector(video); + this.videoSources = this.videoElement?.querySelectorAll("source"); + this.config = config; + } + + private adapters(): void {} + private ui(): void {} + private plugins(): void {} +}