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

@@ -57,9 +57,7 @@ export class SceneManager {
return targets
}
getCandidateUrls(scene: SceneNode, evaluateCondition: (conds?: Condition[]) => boolean): string[] {
getCandidateSceneIds(scene: SceneNode, evaluateCondition: (conds?: Condition[]) => boolean): string[] {
return this.getCandidateTargetIds(scene, evaluateCondition)
.map(id => this.scenes[id]?.videoUrl)
.filter((url): url is string => !!url)
}
}