youtube.pause

getYoutube(id).pause()

Pauses the video.

Example:

[js highlight=”10″ try=”true”]newYoutube(“mcgurk”, “aFPtc8BVdJk”)
.print()
.play()
,
newTimer(“preview”, 1000)
.start()
.wait()
,
getYoutube(“mcgurk”)
.pause()
[/js]

Starts playing a mind-blowing video demonstrating the McGurk effect, waits 1 second and pauses the video.