From 5054c99581c1b8bd87cbb0388ac471ed4596e21c Mon Sep 17 00:00:00 2001 From: rgdev Date: Sat, 7 Dec 2024 22:10:59 +0100 Subject: [PATCH] fix: restore relative url support for video nodes --- packages/2d/src/lib/components/Video.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/2d/src/lib/components/Video.ts b/packages/2d/src/lib/components/Video.ts index 0275c53f..7a10e429 100644 --- a/packages/2d/src/lib/components/Video.ts +++ b/packages/2d/src/lib/components/Video.ts @@ -113,7 +113,7 @@ export class Video extends Media { video = document.createElement('video'); video.crossOrigin = 'anonymous'; - const parsedSrc = new URL(src); + const parsedSrc = new URL(src, window.location.origin); if (parsedSrc.pathname.endsWith('.m3u8')) { const hls = new Hls(); hls.loadSource(src);