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);