From 6a3bc50066f8372ebb7563e9e419ea42a7f6bd6c Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Mon, 29 Sep 2025 11:55:35 -0400 Subject: [PATCH] Clear crossOrigin when resetting modal video --- js/app.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/js/app.js b/js/app.js index cf91def4..216ff94a 100644 --- a/js/app.js +++ b/js/app.js @@ -5510,6 +5510,15 @@ class bitvidApp { videoElement.srcObject = null; }); + safe(() => { + if ("crossOrigin" in videoElement) { + videoElement.crossOrigin = null; + } + if (videoElement.hasAttribute("crossorigin")) { + videoElement.removeAttribute("crossorigin"); + } + }); + safe(() => { if (typeof videoElement.load === "function") { videoElement.load(); @@ -5539,6 +5548,15 @@ class bitvidApp { clone.srcObject = null; }); + safe(() => { + if ("crossOrigin" in clone) { + clone.crossOrigin = null; + } + if (clone.hasAttribute("crossorigin")) { + clone.removeAttribute("crossorigin"); + } + }); + clone.autoplay = videoElement.autoplay; clone.controls = videoElement.controls; clone.loop = videoElement.loop;