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.
Example
Section titled “Example”// 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.
Returns
Section titled “Returns”Promise<void>
Example
Section titled “Example”// Background music for the whole video:await music.theme()
// Bounded span:await music.sting.start()await page.click('#celebrate')await music.sting.end()Methods
Section titled “Methods”end():
Promise<void>
Defined in: audio.ts:89
Returns
Section titled “Returns”Promise<void>
start()
Section titled “start()”start():
Promise<void>
Defined in: audio.ts:88
Returns
Section titled “Returns”Promise<void>