feat: made the vars private and added adapter
will change a lot of it later on
This commit is contained in:
@@ -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"];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user