video.stop

getVideo(id).stop() (since beta 0.3)

Stops the playback of the video and goes back to the start of it, making it impossible to resume from the current position later.

Example:

[js highlight=”10″ try=”true”]newVideo(“skate”, “skate.mp4”)
.print()
.play()
,
newTimer(“preview”, 2500)
.start()
.wait()
,
getVideo(“skate”)
.stop()[/js]

Prints and starts playing the file sentence.mp4 and stops it after 2500ms. It will not be possible to resume playback from there by simply calling play later on.