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

Link Search Menu Expand Document

audio.test.playing

description

Tests whether the audio stream is playing at the moment when the test command gets evaluated.

syntax

getAudio(ELEMENT_NAME).test.playing()

example(s)


@newAudio("test.mp3")
@  .print()
@  .play()
@  .test.playing()
@  .log()
  • Checks whether the audio is playing at the moment of the execution of the command. In this case it would return the result as correct.
  • Note that you can use this command as a conditional to the other functions.