PlayYoutubeVideo

Family: Video · One form

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

NameType
developerKeystring
videoIDstring
startTimefloat

Every form returns

nothing

Example · generated

video = LoadVideo("assets/clip.mp4")PlayYoutubeVideo("score", video, 1.0)DO  Sync()LOOP

LoadVideo 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.

18 commands in Video