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.
This commit is contained in:
gator 2026-09-17 12:45:04 +00:00
parent fabb7d2ed8
commit 8a3e257637

View file

@ -616,6 +616,7 @@
+ '<div class="where">' + esc(s.setting || "") + ' &middot; ' + '<div class="where">' + esc(s.setting || "") + ' &middot; '
+ Number(s.edit_seconds || 0).toFixed(1) + 's' + Number(s.edit_seconds || 0).toFixed(1) + 's'
+ (s.scene ? ' &middot; <span class="scene">' + esc(s.scene) + '</span>' : '') + (s.scene ? ' &middot; <span class="scene">' + esc(s.scene) + '</span>' : '')
+ (s.day ? ' &middot; <span class="scene">' + esc(s.day) + '</span>' : '')
+ '</div>' + '</div>'
+ media + media
+ '<p class="act">' + esc(s.action || "") + '</p>' + '<p class="act">' + esc(s.action || "") + '</p>'
@ -713,8 +714,9 @@
if (cc.filmed < cc.of) if (cc.filmed < cc.of)
showMsg("msg", "Playing the " + cc.filmed + " of " + cc.of showMsg("msg", "Playing the " + cc.filmed + " of " + cc.of
+ " shots that are filmed. The rest are skipped."); + " shots that are filmed. The rest are skipped.");
PLAYING = cid; QAT = 0; openTab(CUR); PLAYING = cid; QAT = 0;
setTimeout(playCut, 60); await openTab(CUR); // the video element does not exist until this lands
playCut();
return; return;
} }
if ((el = hit("data-stop"))) { PLAYING = null; QUEUE = []; openTab(CUR); return; } if ((el = hit("data-stop"))) { PLAYING = null; QUEUE = []; openTab(CUR); return; }