The new PCIbex Farm is here! Be sure to check out all of its new features and changes.

Link Search Menu Expand Document

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.