fix: apply assetBase to streamingUrl paths for adaptive bitrate HLS

This commit is contained in:
2026-06-12 17:18:30 +08:00
parent b6231e4efd
commit 08f4bf3648

View File

@@ -132,6 +132,11 @@ export function useGameEngine(videoEls: () => [HTMLVideoElement | null, HTMLVide
scene.subtitles[k] = resolveAsset(base, scene.subtitles[k])
}
}
if (scene.streamingUrl) {
for (const k of Object.keys(scene.streamingUrl)) {
scene.streamingUrl[k] = resolveAsset(base, scene.streamingUrl[k])
}
}
}
if (data.endings) {
for (const e of data.endings) {