Honour the "and play" half once the audio is ready
This commit is contained in:
parent
f3cfb15d51
commit
4d0d375dbb
1 changed files with 12 additions and 0 deletions
12
trailer.html
12
trailer.html
|
|
@ -293,6 +293,18 @@
|
|||
((cs && cs.cuts) || []).forEach(function (x) { STATS[x.cut_id] = x; });
|
||||
}
|
||||
pane.innerHTML = paneHtml(meta, r.draft);
|
||||
|
||||
// "Prepare and play" promised both. Once the audio lands, play it.
|
||||
if (REELWANT && String(PKG.reel_state || "") === "ready" && !REEL) {
|
||||
REELWANT = false;
|
||||
hideMsg("msg");
|
||||
var rl = await api("reel", { draft_id: id });
|
||||
if (rl.ok && (rl.shots || []).length) {
|
||||
REEL = rl.shots; RAT = -1;
|
||||
pane.innerHTML = paneHtml(meta, r.draft);
|
||||
reelShow(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The story the writer committed to before writing a shot. This is where a
|
||||
|
|
|
|||
Loading…
Reference in a new issue