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

Link Search Menu Expand Document

youtube.once

description

Will disable the Youtube video after it has finished playing.

syntax

getYoutube(ELEMENT_NAME).once()

example(s)


@newYoutube("myYoutube", "aFPtc8BVdJk")
$    .once()
@    .print()
@    .play()
@    .wait()
@,
@newButton("validate", "Validate")
@   .print()
@   .wait()
  • Shows a video on the page and starts playing it. Playback will become disabled after it has finished.