From 69875c1ff055cf6c3539791054542239bd4ab9eb Mon Sep 17 00:00:00 2001 From: Brian Fertig Date: Fri, 4 Sep 2026 22:34:10 -0600 Subject: [PATCH] Fix video sizing and replace fixed landing timeout with playback-aware g MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Introduce `attachClip` to set volume, cover-fit, and re-fit on the first presented frame (`created`) so clips no longer render ~3.4× zoomed in due to v4 placeholder sizes. - Use `setScale` instead of `setDisplaySize` in `fitCover`, which is stable across frame swaps that preserve scale rather than size. - Drop the blanket 8s safety valve that cut ~15s landing clips in half; replace with two targeted guards: a 5s stalled check (no playback progress) and a duration-based cap (duration + 5s margin). --- js/scenes/SurfaceScene.js | 61 +++++++++++++++++++++++++++++++-------- 1 file changed, 49 insertions(+), 12 deletions(-) diff --git a/js/scenes/SurfaceScene.js b/js/scenes/SurfaceScene.js index 8a005f9..7c3db85 100644 --- a/js/scenes/SurfaceScene.js +++ b/js/scenes/SurfaceScene.js @@ -87,8 +87,7 @@ export class SurfaceScene extends Phaser.Scene { // v4: add.video(x, y, key) — the key is the LAST argument (it loads the // cached clip and attaches the