getYoutube(id).stop()
(since beta 0.3)
Pauses the video and moves it back to the beginning (position = 0s).
Example:
[js highlight=”10″ try=”true”]newYoutube(“mcgurk”, “aFPtc8BVdJk”)
.print()
.play()
,
newTimer(“preview”, 2000)
.start()
.wait()
,
getYoutube(“mcgurk”)
.stop()
[/js]
Starts playing a mind-blowing video demonstrating the McGurk effect, waits 2 seconds and stops the video. The video will start over from the beginning next time it is played.