prepare

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
prepare videoClip <filePath> [looping] [at <startPoint>]
Summary

Preloads a movie into memory.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Parameters
NameTypeDescription
filePath

The location and name of the file you want to play. If you specify a name but not a location, LiveCode assumes the file is in the defaultFolder.

startPoint

This is the number of the interval where the selection begins. (The number of intervals per second is specified by the player's timeScale property. The total number of intervals is given in the player's duration property.)

Example
prepare videoClip "/Disk/Folder/Movie" at 100,100
prepare videoClip ID 17 looping
RelatedProperty: frameRate
Command: play
Function: movie
Glossary: parameter, command, loaded into memory, execute
Description

Use the prepare command to speed up execution of the play command.

Use the prepare command to preload the movie at some time before it is needed. Then use the play command with identical parameters to actually play the movie. Since the movie is already loaded into memory, it starts up instantly when the play command executes.

The parameters of the prepare command must be identical to those of the corresponding play command.

Tagsmultimedia