Skip to content

AudioController

AudioController = Promise<void>

Defined in: audio.ts:86

A background audio controller.

Calling it (await music.theme()) starts the track at the current point and lets it play for the rest of the video. Use start()/end() to bound the track to a specific span. Tracks are non-exclusive: starting one never stops another, so music and a sound effect can overlap.

// Background music for the whole video:
await music.theme()
// Bounded span:
await music.sting.start()
await page.click('#celebrate')
await music.sting.end()

AudioController(): Promise<void>

A background audio controller.

Calling it (await music.theme()) starts the track at the current point and lets it play for the rest of the video. Use start()/end() to bound the track to a specific span. Tracks are non-exclusive: starting one never stops another, so music and a sound effect can overlap.

Promise<void>

// Background music for the whole video:
await music.theme()
// Bounded span:
await music.sting.start()
await page.click('#celebrate')
await music.sting.end()

end(): Promise<void>

Defined in: audio.ts:89

Promise<void>


start(): Promise<void>

Defined in: audio.ts:88

Promise<void>