getYoutube(id).settings.once()
(since beta 0.3)
Will disable the Youtube video after it has finished playing.
Example:
[js highlight=”2″ try=”true”]newYoutube(“myYoutube”, “aFPtc8BVdJk”)
.settings.once()
.print()
.play()
.wait()
,
newButton(“validate”, “Validate”)
.print()
.wait()
[/js]
Shows a video on the page and starts playing it. Playback will become disabled after it has finished.