diff --git a/packages/vidstack/src/utils/hls.ts b/packages/vidstack/src/utils/hls.ts index e83ef4e70..9eea3a34c 100644 --- a/packages/vidstack/src/utils/hls.ts +++ b/packages/vidstack/src/utils/hls.ts @@ -8,7 +8,12 @@ export function resolveStreamTypeFromHLSManifest( .then((res) => res.text()) .then((manifest) => { const renditionURI = resolveHLSRenditionURI(manifest); - if (renditionURI) return resolveStreamTypeFromHLSManifest(renditionURI, requestInit); + if (renditionURI) { + return resolveStreamTypeFromHLSManifest( + /^https?:/.test(renditionURI) ? renditionURI : new URL(renditionURI, manifestSrc).href, + requestInit, + ); + } const streamType = /EXT-X-PLAYLIST-TYPE:\s*VOD/.test(manifest) ? 'on-demand' : 'live';