immersive mode video player

This commit is contained in:
2026-02-24 11:57:25 +02:00
parent 151e1ff82f
commit 441befabd7
2 changed files with 6 additions and 8 deletions
@@ -43,8 +43,8 @@ class VideoPlayer extends EventManager {
skipTransition: data.skipTransition skipTransition: data.skipTransition
}); });
} }
if (data.hideBackground || 1){ if (data.immersive || 1){
engine.showBackground(false); engine.immersive(true);
} }
} }
@@ -54,8 +54,8 @@ class VideoPlayer extends EventManager {
skipTransition: data.skipTransition skipTransition: data.skipTransition
}); });
} }
if (data.hideBackground || 1){ if (data.immersive || 1){
engine.showBackground(true); engine.immersive(false);
} }
} }
+2 -4
View File
@@ -26,8 +26,6 @@ export default {
} }
this.resize(); this.resize();
//engine.setCamera(engine.orthographicCamera)
//engine.setCameraOrthographic();
if (!this.scenario) { if (!this.scenario) {
await this.loadScenario(); await this.loadScenario();
} }
@@ -144,7 +142,7 @@ export default {
await this.expandScenarioData(scene); await this.expandScenarioData(scene);
engine.dashboard?.loading(0.05); engine.dashboard?.loading(0.05);
engine.orbitControls.enableRotate = this.env == 'GameDesigner' //engine.orbitControls.enableRotate = this.env == 'GameDesigner'
//this is needed cause when mounted canvas has different size //this is needed cause when mounted canvas has different size
this.resize(); this.resize();
@@ -236,7 +234,7 @@ export default {
$go: this.scene.data.$intro, $go: this.scene.data.$intro,
skipTransition: true, skipTransition: true,
playInHud: true, playInHud: true,
hideBackground: true immersive: true
}); });
engine.activeObjects.add(intro.object); engine.activeObjects.add(intro.object);
intro.video.addEventListener('pause',()=>{ intro.video.addEventListener('pause',()=>{