immersive mode video player
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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',()=>{
|
||||||
|
|||||||
Reference in New Issue
Block a user