fix: apply assetBase to streamingUrl paths for adaptive bitrate HLS
This commit is contained in:
@@ -132,6 +132,11 @@ export function useGameEngine(videoEls: () => [HTMLVideoElement | null, HTMLVide
|
|||||||
scene.subtitles[k] = resolveAsset(base, scene.subtitles[k])
|
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) {
|
if (data.endings) {
|
||||||
for (const e of data.endings) {
|
for (const e of data.endings) {
|
||||||
|
|||||||
Reference in New Issue
Block a user