4D v13.4PLAY |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
PLAY
PLAY
The PLAY command plays sound or multimedia files. You pass the full pathname of the file you want to play in objectName. On Mac OS, the command can also be used to play a sound resource or a system sound.
The channel parameter specifies the Macintosh synthesizer channel. If channel is not specified, the channel is used for simple digitized sounds and is synchronous. Synchronous means that all processing stops until the sound has finished playing. If channel is 0, the channel is for simple digitized sounds and is asynchronous. Asynchronous means that processing does not stop and the sound plays in the background. To stop playing a synchronous sound, use the following statement: PLAY("";0) The following example shows how to play a video file on Windows: $DocRef :=Open document("";"AVI") The following example code appears in a startup method. It welcomes the user with a sound called Welcome Sound on Macintosh: PLAY("Welcome Sound") ` Play the Welcome Sound |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: < 4D v6 SEE ALSO |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||