From ba991b8156a6e15d3569a19b5e930e31612ba7f2 Mon Sep 17 00:00:00 2001 From: db123 Date: Thu, 23 Apr 2026 00:47:28 +0330 Subject: [PATCH] feat: made the vars private and added adapter will change a lot of it later on --- src/core/VideoPlayer.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/core/VideoPlayer.ts b/src/core/VideoPlayer.ts index 68c7a70..0211123 100644 --- a/src/core/VideoPlayer.ts +++ b/src/core/VideoPlayer.ts @@ -5,12 +5,13 @@ * creation: 21/4/2026 */ -import { PlayerConfig } from "../types/index"; +import { AdapterAPI, PlayerConfig } from "../types/index"; export class VP { - videoElement: HTMLElement | null; - videoSources?: NodeListOf; - config?: PlayerConfig; + private videoElement: HTMLElement | null; + private videoSources?: NodeListOf; + private config?: PlayerConfig; + private adapter?: AdapterAPI; /** * @param {string} video The targeted video element @@ -24,5 +25,6 @@ export class VP { this.videoElement = document.querySelector(video); } this.videoSources = this.videoElement?.querySelectorAll("source"); + let adapter = this.config["type"]; } }