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
|
* creation: 21/4/2026
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { PlayerConfig } from "../types/index";
|
import { AdapterAPI, PlayerConfig } from "../types/index";
|
||||||
|
|
||||||
export class VP {
|
export class VP {
|
||||||
videoElement: HTMLElement | null;
|
private videoElement: HTMLElement | null;
|
||||||
videoSources?: NodeListOf<HTMLSourceElement>;
|
private videoSources?: NodeListOf<HTMLSourceElement>;
|
||||||
config?: PlayerConfig;
|
private config?: PlayerConfig;
|
||||||
|
private adapter?: AdapterAPI;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} video The targeted video element
|
* @param {string} video The targeted video element
|
||||||
@@ -24,5 +25,6 @@ export class VP {
|
|||||||
this.videoElement = document.querySelector(video);
|
this.videoElement = document.querySelector(video);
|
||||||
}
|
}
|
||||||
this.videoSources = this.videoElement?.querySelectorAll("source");
|
this.videoSources = this.videoElement?.querySelectorAll("source");
|
||||||
|
let adapter = this.config["type"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user