video.settings.once

getVideo(id).settings.once()

Disables the buttons to play/pause the video right after its first playing (the video can still be played using the action play).

Example:

[js highlight=”5″ try=”true”]
newText(“instructions”, “Please watch the video below”)
.print()
,
newVideo(“skate”, “skate.mp4”)
.settings.once()
.print()
.wait()
[/js]

Adds some instruction text to the screen and a video below the text. After the video has played, the interface is grayed out and playback is no longer accessible.