What it does
PlayYoutubeVideo makes something happen at once: it plays. It takes developerKey (a string), videoID (a string) and startTime (a float), and returns nothing.
Syntax
PlayYoutubeVideo(developerKey string, videoID string, startTime float)Parameters
| Name | Type |
|---|---|
| developerKey | string |
| videoID | string |
| startTime | float |
Every form returns
nothing
Example · generated
video = LoadVideo("assets/clip.mp4")PlayYoutubeVideo("score", video, 1.0)DO Sync()LOOPLoadVideo is there to give the call something to act on; PlayYoutubeVideo is the line that matters. 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.