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:
parent
fabb7d2ed8
commit
8a3e257637
1 changed files with 4 additions and 2 deletions
|
|
@ -616,6 +616,7 @@
|
||||||
+ '<div class="where">' + esc(s.setting || "") + ' · '
|
+ '<div class="where">' + esc(s.setting || "") + ' · '
|
||||||
+ Number(s.edit_seconds || 0).toFixed(1) + 's'
|
+ Number(s.edit_seconds || 0).toFixed(1) + 's'
|
||||||
+ (s.scene ? ' · <span class="scene">' + esc(s.scene) + '</span>' : '')
|
+ (s.scene ? ' · <span class="scene">' + esc(s.scene) + '</span>' : '')
|
||||||
|
+ (s.day ? ' · <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; }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue