video.remove

getVideo(id).remove()

Removes the <video> element from the screen.

Example:

[js try=”true” highlight=”6″]
newVideo(“skate”, “skate.mp4”)
.print()
.wait()
,
getVideo(“skate”)
.remove()[/js]

Adds the video ksate.mp4 onto the screen, and removes it from the screen after the video has been fully played.