Skip to content

Commit

Permalink
[custom-stage-size] Deploy 07cf9de0d8e438d21d4394ed90b48a9df6cae163
Browse files Browse the repository at this point in the history
  • Loading branch information
forkphorus deploy bot authored and GarboMuffin committed Nov 7, 2024
1 parent b853b73 commit 413e06e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
29 changes: 17 additions & 12 deletions custom-stage-size/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,18 @@ <h1>forkphorus</h1>
e.preventDefault();
}, { passive: false });

player.setOptions(Common.playerOptions);

player.setOptions({
fullscreenMode: 'window',
autoplayPolicy: 'if-audio-playable',
});

// do not focus the stage when embedded
if (!window.parent || window.parent === window) {
player.setOptions({ focusOnLoad: false });
}

Common.parseSearch(function(key, value) {
switch (key) {
case 'full-screen':
Expand All @@ -130,21 +142,14 @@ <h1>forkphorus</h1>
case 'controls':
player.addControls({ enableFullscreen: false });
break;
case 'autostart':
player.setOptions({
autoplayPolicy: 'always'
});
break;
}
});

// do not focus the stage when embedded
if (!window.parent || window.parent === window) {
player.setOptions({ focusOnLoad: false });
}

player.setOptions(Common.playerOptions);

player.setOptions({
fullscreenMode: 'window',
autoplayPolicy: 'if-audio-playable',
});

player.loadProjectById(Common.projectId)
.then(function() {
player.enterFullscreen();
Expand Down
2 changes: 1 addition & 1 deletion custom-stage-size/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ <h1 data-i18n="index.code">Code</h1>

<footer>
<a data-i18n="index.privacy" href="privacy">Privacy Policy</a>
- Version 9c6a46c (2024-11-07)</footer>
- Version 07cf9de (2024-11-07)</footer>
</section>

</div>
Expand Down

0 comments on commit 413e06e

Please sign in to comment.