The new PCIbex Farm is here! Be sure to check out all of its new features and changes.

Link Search Menu Expand Document

video.stop

description

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

syntax

getVideo(ELEMENT_NAME).stop()

example(s)


@newVideo("skate", "skate.mp4")
@    .print()
@    .play()
@,
@newTimer("preview", 2500)
@    .start()
@    .wait()
@,
@getVideo("skate")
@    .stop()
  • 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.