diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index 1611684890..677f2c38f7 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -273,10 +273,6 @@ function tryRemoveElement(elem) { * @type {any | undefined} */ #lastProfile; - /** - * @type {MutationObserver | IntersectionObserver | undefined} (Unclear observer typing) - */ - #resizeObserver; constructor() { if (browser.edgeUwp) { @@ -963,11 +959,6 @@ function tryRemoveElement(elem) { * @private */ destroyCustomTrack(videoElement) { - if (this.#resizeObserver) { - this.#resizeObserver.disconnect(); - this.#resizeObserver = null; - } - if (this.#videoSubtitlesElem) { const subtitlesContainer = this.#videoSubtitlesElem.parentNode; if (subtitlesContainer) {