From 8a3e2576376aead1b05e848a062607fa0a14561a Mon Sep 17 00:00:00 2001 From: gator Date: Thu, 17 Sep 2026 12:45:04 +0000 Subject: [PATCH] Await the repaint before playing, and show each shot's day openTab fetches the draft, so the video element did not exist 60ms later and the first play was a no-op. --- trailer.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trailer.html b/trailer.html index d6902b4..556e0ef 100644 --- a/trailer.html +++ b/trailer.html @@ -616,6 +616,7 @@ + '
' + esc(s.setting || "") + ' · ' + Number(s.edit_seconds || 0).toFixed(1) + 's' + (s.scene ? ' · ' + esc(s.scene) + '' : '') + + (s.day ? ' · ' + esc(s.day) + '' : '') + '
' + media + '

' + esc(s.action || "") + '

' @@ -713,8 +714,9 @@ if (cc.filmed < cc.of) showMsg("msg", "Playing the " + cc.filmed + " of " + cc.of + " shots that are filmed. The rest are skipped."); - PLAYING = cid; QAT = 0; openTab(CUR); - setTimeout(playCut, 60); + PLAYING = cid; QAT = 0; + await openTab(CUR); // the video element does not exist until this lands + playCut(); return; } if ((el = hit("data-stop"))) { PLAYING = null; QUEUE = []; openTab(CUR); return; }