audio.pause

description

Pauses the audio file.

syntax

getAudio(ELEMENT_NAME).pause()

example(s)


@newAudio("sentence", "test.mp3")
@    .play()
@,
@newTimer("preview", 750)
@    .start()
@    .wait()
@,
@getAudio("sentence")
$    .pause()
@    .print()
@    .wait()
  • Starts playing the file test.mp3, pauses it after 750ms, and shows controls on the screen making it possible to resume playback.