NarrationCue
NarrationCue =
Promise<void>
Defined in: cue.ts:326
A narration cue controller.
Example
Section titled “Example”await narration.intro()await page.goto('/dashboard')await narration.nextStep.start()await narration.nextStep.end()
// Hold the cue until an absolute position in the final video:await narration.outro.until('1:05') // until 1 minute 5 secondsawait narration.outro.until('90%') // until 90% throughNarrationCue():
Promise<void>
No argument: play the line and block until its audio finishes.
Returns
Section titled “Returns”Promise<void>
Methods
Section titled “Methods”end():
Promise<void>
Defined in: cue.ts:337
Returns
Section titled “Returns”Promise<void>
start()
Section titled “start()”start():
Promise<void>
Defined in: cue.ts:336
Returns
Section titled “Returns”Promise<void>
until()
Section titled “until()”until(
position):Promise<void>
Defined in: cue.ts:335
Start the line now and hold the cue window until this absolute point in the
final video (a '<n>s'/timecode position, or a '<n>%' fraction). The audio
is never cut: if it runs longer than the position, the window extends to let
it finish. Successive .until(...) targets must be monotonic.
Parameters
Section titled “Parameters”position
Section titled “position”Returns
Section titled “Returns”Promise<void>