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) → integerParameters
| Name | Type |
|---|---|
| fileName | string |
Every form returns
integer
Example · generated
video = LoadVideo("assets/clip.mp4")DO Sync()LOOPLoadVideo 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.