LoadVideo

Family: Video · One form

What it does

LoadVideo writes to a Video object: it loads rather than reads. It takes fileName (a string), and answers an integer.

Syntax

LoadVideo(fileName string) → integer

Parameters

NameType
fileNamestring

Every form returns

integer

Example · generated

video = LoadVideo("assets/clip.mp4")DO  Sync()LOOP

LoadVideo is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

18 commands in Video