fix: preload candidate URLs now use resolveVideoUrl in Web mode
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user