play | |||||||||||||||||||
Type | command | ||||||||||||||||||
Dictionary | LCS | ||||||||||||||||||
Library | LiveCode Script | ||||||||||||||||||
Syntax |
| ||||||||||||||||||
Summary | Plays a movie or sound. | ||||||||||||||||||
Introduced | 1.0 | ||||||||||||||||||
Changes | The use of QuickTime was deprecated in version 8.1 of LiveCode. As
the | ||||||||||||||||||
OS | mac, windows, linux, ios | ||||||||||||||||||
Platforms | desktop, server, mobile | ||||||||||||||||||
Parameters |
| ||||||||||||||||||
Example |
| ||||||||||||||||||
Values |
| ||||||||||||||||||
Related | Property: callbacks, currentTime, dontRefresh, frameCount, looping, playDestination, playLoudness, playRate, showSelection Message: playStarted, playStopped Object: audioClip, player, videoClip Glossary: command, current card, environment variable, execute, message, QuickTime, return, Unix Function: MCISendString, QTVersion, result, sound Command: beep, import, iphoneSetAudioCategory, prepare, revStopAnimation, start, stop Control Structure: function | ||||||||||||||||||
Description | Use the play command to control playing of a movie or sound. If you use the play ... looping form, the sound or video plays continuously from beginning to end until you stop it. You can stop playing of a movie or sound with the stop command or with the play stop form. If you specify a clip, only that clip is stopped. If you specify a type but not a clip, the last clip of that type is stopped. (On Unix systems, you must wait a second or two after starting a movie or sound before you can stop it, to give the external player time to start up.) You can play multiple movies at once by starting each one of them with the play command. Movies cannot be played while any tool other than the Browse tool is in use. If you start playing an audio clip when another one is playing, the first audio clip is stopped, and a playStopped message is sent to the current card. You cannot play two sounds at the same time, nor can you queue a sound while another sound is playing. On Unix systems, the "xanim" program must be located in a directory in the PATH environment variable. You can set the PATH from within LiveCode by using the put command :
Note: The type of audio and video clip formats supported | ||||||||||||||||||
Tags | multimedia |