feat: made the vars private and added adapter

will change a lot of it later on
This commit is contained in:
2026-04-23 00:47:28 +03:30
parent 26d65b3282
commit ba991b8156

View File

@@ -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<HTMLSourceElement>;
config?: PlayerConfig;
private videoElement: HTMLElement | null;
private videoSources?: NodeListOf<HTMLSourceElement>;
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"];
}
}