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.