diff --git a/src/core/VideoPlayer.ts b/src/core/VideoPlayer.ts index 3cc2f7f..81fb8b5 100644 --- a/src/core/VideoPlayer.ts +++ b/src/core/VideoPlayer.ts @@ -11,7 +11,6 @@ import { BaseUI } from '../ui'; export class VP { private video: HTMLVideoElement; - private videoSrc?: NodeListOf; private config?: PlayerConfig; private adapter: AdapterAPI; private ui?: BaseUI; @@ -22,9 +21,7 @@ export class VP { */ constructor(video: string | HTMLVideoElement, config: PlayerConfig) { this.config = config; - this.video = this.videoElement(video); - this.videoSrc = this.video?.querySelectorAll('source'); if (!this.config.type) { throw new Error('Type not specified in config.');