4D v14.3PLAY |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
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
HISTORY
Created: < 4D v6 SEE ALSO ARTICLE USAGE
4D Language Reference ( 4D v14 R2) Inherited from : PLAY ( 4D v11 SQL Release 6) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||