Skip to content

NarrationCue

NarrationCue = Promise<void>

Defined in: cue.ts:326

A narration cue controller.

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 seconds
await narration.outro.until('90%') // until 90% through

NarrationCue(): Promise<void>

No argument: play the line and block until its audio finishes.

Promise<void>

end(): Promise<void>

Defined in: cue.ts:337

Promise<void>


start(): Promise<void>

Defined in: cue.ts:336

Promise<void>


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.

TimelineOffset

Promise<void>