fix: preload candidate URLs now use resolveVideoUrl in Web mode

This commit is contained in:
2026-06-12 18:56:29 +08:00
parent 320502a7c3
commit 32f7e34130
2 changed files with 6 additions and 4 deletions

View File

@@ -107,10 +107,14 @@ export class Engine {
this.emit('sceneChange', scene)
this.checkHotspotTime(scene, 0)
const preloadUrls = this.sceneManager.getCandidateUrls(
const candidateIds = this.sceneManager.getCandidateSceneIds(
scene,
(conds) => conds ? this.stateManager.evaluate(conds) : true
)
const preloadUrls = candidateIds
.map(id => this.sceneManager.getScene(id))
.filter((s) => !!s && s.type !== 'image')
.map(s => this.videoManager.resolveVideoUrl(s!, this.videoManager.streamingQuality))
this.videoManager.onEnd(() => {
if (!this.qteTriggered || this.qteResolved) {